Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame processor OCR isn't working when the app is in landscape orientation #13

Closed
briazzi64 opened this issue Aug 16, 2024 · 3 comments
Closed

Comments

@briazzi64
Copy link

My app doesn't allow landscape orientation and I'm curious if that is the problem. The photo recognizer function has an orientation prop but I can't find one for the camera. I can get the frame process OCR to work if I the text is portrait but the image is an envelope and it's awkward to have to stand so far back to the whole envelope in frame for portrait.

@denisbevilacqua
Copy link

You can take a photo and use the photo recognizer using the orientation prop if you want to use the landscape mode. For live detection, this library does not support yet Orientation and only will work in Portrait mode.

Here the author of Vision Camera explains how to add support for Orientation to this library.

Here is more information about Orientation.

@briazzi64
Copy link
Author

Awesome. Thanks for the info

@denisbevilacqua
Copy link

Awesome. Thanks for the info

No problem! I created a new issue with the Feature Request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants