2

Currently I'm working on a android program using Mobile Vision. I am using the "TextRecognizer" class and one of the methods is .detect(Frame frame). Right now I have a image I want to input into it, however, the image is the file type "Bitmap". I have tried to convert it to "Frame" by casting it but that hasn't worked. If anyone has any suggesting it would be much appreciated.

rmtheis
  • 5,992
  • 12
  • 61
  • 78
Andrew
  • 240
  • 1
  • 3
  • 13

1 Answers1

6

Use the setBitmap method in the Frame.Builder class:

Frame outputFrame = new Frame.Builder().setBitmap(myBitmap).build();
rmtheis
  • 5,992
  • 12
  • 61
  • 78