-
Notifications
You must be signed in to change notification settings - Fork 30
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
[QUESTION]: text in wrong direction #13
Comments
yeah, I saw that vision now supports the orientation. But I didn't have time to play around with it and see the changes in there. |
I will definitely take a look at it and play with it a bit |
Little update here, as of react native vision camera v.4.4.0 the frame is back to the correct orientation of landscape-right. I am still having some issues with scanning though. Do you have the possibility to test @ismaelsousa? So I can see if it is an issue from the rest of my code. |
hmmm, maybe your error is around this, isn’t ? ![]() Because if you are trying to draw it and it's appearing in a mess way the frame can give you the rotation but the output of ML kit is rotated to that format. Try to update the native side with this properties and let me know the result :) link to docs: https://developer.android.com/reference/androidx/camera/core/ImageAnalysis.Builder#setOutputImageRotationEnabled(boolean) |
@ismaelsousa I have made a PR with a proposal to rectify this behaviour for ios |
Hello, the author of It seems to be one line of code. Can you please fix this ASAP? |
After upgrading to latest version of react native, react native vision camera and this library, the frame is now in a wrong orientation. The frame orientation is set to
portrait
but is actually inlandscape-right
. This results in needing to orientate the text to the right in order to be able to scan. A quick fix I tried is to setvisionImage.orientation = .right
instead of.up
, now the text is scanned properly when held upright in front of the camera.I realise that this issue is also coming from react native vision camera but shouldn't this library be able to handle different frame orientation?
Version:
react native: 0.74.2
react native vision camera: 4.3.2
vision camera ocr: 3.0.1
The text was updated successfully, but these errors were encountered: