gev2002 / react-native-vision-camera-text-recognition

https://www.npmjs.com/package/react-native-vision-camera-text-recognition
MIT License
49 stars 9 forks source link

Not working on iOS #2

Closed daveyjones closed 6 months ago

daveyjones commented 6 months ago

I'm just getting empty results on iOS:

{"result": {"blocks": [], "text": ""}}
{"result": {"blocks": [], "text": ""}}
{"result": {"blocks": [], "text": ""}}
...

I created a minimal repository that demonstrates this issue:

https://github.com/daveyjones/vision-camera-text-recognition-demo

gev2002 commented 6 months ago

It's from orientation you can for a time set orientation={"landscape-left"} for iOS.It's because Vision Camera not fully supported orientation.

daveyjones commented 6 months ago

@gev2002 When I use orientation={"landscape-left"}, it works correctly in portrait, but ironically does not work in landscape. Do you know how we can support any orientation?