Created
June 16, 2019 11:11
-
-
Save aligkts/92ed8e419b3dc4c7ae4dc48bdf1b3545 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
btn_detect.setOnClickListener { | |
camera_view.captureImage { cameraKitView, byteArray -> | |
camera_view.onStop() | |
alertDialog.show() | |
var bitmap = BitmapFactory.decodeByteArray(byteArray, 0, byteArray?.size ?: 0) | |
bitmap = Bitmap.createScaledBitmap(bitmap, camera_view?.width ?: 0, camera_view?.height ?: 0, false) | |
runDetector(bitmap) | |
} | |
graphic_overlay.clear() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment