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.
Asked
Active
Viewed 3,292 times
2
-
1There is no `TextRecognizer` class in the Android API. Which library are you using? – Henry Nov 19 '16 at 19:32
-
I am using the Google Play Services Mobile Vision API @Henry – Andrew Nov 19 '16 at 20:15
-
@Henry com.google.android.gms.vision.text in Google Play Services Mobile Vision API – Leons Dec 16 '16 at 11:54
1 Answers
6
Use the setBitmap
method in the Frame.Builder
class:
Frame outputFrame = new Frame.Builder().setBitmap(myBitmap).build();

rmtheis
- 5,992
- 12
- 61
- 78