Skip to content

Instantly share code, notes, and snippets.

@ablenesi
Created June 18, 2018 18:22
Show Gist options
  • Save ablenesi/b51e5b1c6ac610ca0733f3cf9b029ea9 to your computer and use it in GitHub Desktop.
Save ablenesi/b51e5b1c6ac610ca0733f3cf9b029ea9 to your computer and use it in GitHub Desktop.
val image = FirebaseVisionImage.fromBitmap(selectedImage)
val detector = FirebaseVision.getInstance()
.getVisionTextDetector()
detector.detectInImage(image)
.addOnSuccessListener { texts ->
processTextRecognitionResult(texts)
}
.addOnFailureListener(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment