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

Text Recognition Bounds Units #13

Open
codeapp17 opened this issue Oct 12, 2022 · 5 comments
Open

Text Recognition Bounds Units #13

codeapp17 opened this issue Oct 12, 2022 · 5 comments

Comments

@codeapp17
Copy link

codeapp17 commented Oct 12, 2022

Hello.
Currently I am using Text Recognition using react-native-camera library and it returns bounds for x, y coordinates which I can filter for limiting scan area, it works perfectly fine.

But vision-camera-ocr is giving me different coordinates for scanning in the same location in the camera. I have try to use pixel density for converting corner points to dp but that also seems wrong bounds.

Can anybody provide me the information about how can i filter the bounds for limiting the scan area or frame processors give the coordinates in which units.

I am stuck with this for many days, any help would be appreciated.

@francesco-clementi-92
Copy link

I'm exactly in your same situation. Can't find a way to limitate the area to scan, even using the pixelRation

@codeapp17
Copy link
Author

@francesco-clementi-92 this was working fine in iOS with pixel ratio, but I am also able to resolve it on android by using format in camera and then calculating pixel ratio using format width by screen width.

@francesco-clementi-92
Copy link

Hi @codeapp17 I'd really appreciate a sample code as I'm fighting with this from weeks now

@codeapp17
Copy link
Author

@Rakedd
Copy link

Rakedd commented Nov 15, 2023

Any updates on the issue, it seems the link you have provided doesn't give a fix :\

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

4 participants
@francesco-clementi-92 @Rakedd @codeapp17 and others