react-native-mlkit-ocr
react-native-mlkit-ocr copied to clipboard
Not working correctly on iOS
The module works fine on Android device. But when I try to use it on iOS it does not seem to work properly with the same pictures. detectFromUri returns only random single letters as a result of text recognition. What could be the problem?
Like this, but there are a lot of text lines in the picture.
[{"bounding":{"height":274,"left":1239,"width":402,"top":649},"cornerPoints":[{"y":649,"x":1266},{"y":691.5904541015625,"x":1640.5865478515625},{"y":922.105224609375,"x":1614.3770751953125},{"y":879.5147705078125,"x":1239.79052734375}],"lines":[{"elements":[{"bounding":{"height":274,"left":1239,"width":402,"top":649},"text":"w","cornerPoints":[{"y":649,"x":1266},{"y":691.5904541015625,"x":1640.5865478515625},{"y":922.105224609375,"x":1614.3770751953125},{"y":879.5147705078125,"x":1239.79052734375}]}],"bounding":{"top":649,"width":402,"left":1239,"height":274},"cornerPoints":[{"x":1266,"y":649},{"x":1640.5865478515625,"y":691.5904541015625},{"x":1614.3770751953125,"y":922.105224609375},{"x":1239.79052734375,"y":879.5147705078125}],"text":"w"}],"text":"w"}]
You must rotate camera to back when you take a photo :)
https://github.com/agoldis/react-native-mlkit-ocr/issues/13