Skip to content

Instantly share code, notes, and snippets.

@apkelly
Created February 24, 2019 13:59
Show Gist options
  • Save apkelly/357199b333a8c98d42d59a0784dbd20b to your computer and use it in GitHub Desktop.
Save apkelly/357199b333a8c98d42d59a0784dbd20b to your computer and use it in GitHub Desktop.
GoogleVisionActivity.kt
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