Created
February 24, 2019 13:59
-
-
Save apkelly/357199b333a8c98d42d59a0784dbd20b to your computer and use it in GitHub Desktop.
GoogleVisionActivity.kt
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
override fun onNewItem(faceId: Int, item: Face) { | |
mFaceGraphic = FaceGraphic(faceId, mGraphicOverlay) | |
mDetector.lastFrame?.let { frame -> | |
// Lets try and find out who this face belongs to | |
mViewModel.classify(faceId, frame.convertToByteArray()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment