-
Notifications
You must be signed in to change notification settings - Fork 103
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
BoundingBox has wrong values #129
Comments
@criistii I fix to use: |
First of all sorry for the really late response. Did not manage to get back to this issue earlier. @tomahutbui you are right that your code correctly converts to a Maui Rectangle. PS: IMO Microsoft.Maui.Graphics.Rect should not be used since the app should work on Forms as well |
Anyone got a solution for this issue? Been trying to get a working solution for identifying the location of the BoundingBox property but I can't seem to get it working. Is it even possible? |
@kebabmestarn I used tomahutbui's solution and it still was buggy. I ended up verifying just the Y coordinate to get an idea if the barcode is centered. Works reasonably. |
For the bounding box location, it is because the native libraries (Google MLKit) return the native coordination, I tried to use the density to cover it back to Xamarin Forms but it still not quite accurate. |
|
Any solutions to this? |
this is perfect |
The BoundingBox property does not return values in the coordinates of the view.
My goal is to determine what barcode is closest to the center of the screen when multiple barcodes are present.
Also, note that using a Rect may not be the best idea for a BoundingBox, since the barcode can be at any angle. I think that an array of 4 points would describe it better.
The text was updated successfully, but these errors were encountered: