'Text Orientation analysis before running Text Recognition API
For OCR project, I am trying to use MLKit Text Recognition API. No text extracted when image is rotated, only when it is in the up-right position. Modifying the sample provided here https://github.com/googlesamples/mlkit/blob/master/android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/VisionProcessorBase.kt
When requesting detection, I am using this if that matters
InputImage.fromByteArray(frame.imageBytes, frame.imageSize.width, frame.imageSize.height, frame.rotationDegrees, frame.imageFormat)
Any insight how to force the TextProcessor to use the image text orientation.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
