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

How to convert input images when I select the front camera? #15

Closed
chamcham115 opened this issue Apr 14, 2024 · 2 comments
Closed

How to convert input images when I select the front camera? #15

chamcham115 opened this issue Apr 14, 2024 · 2 comments

Comments

@chamcham115
Copy link

I changed the input camera from back camera to front camera.
But Bounding Box's coordinate is outputed as flipped.

How to correct the Bounding box coordinate?
or How to flip the input image?

@chamcham115
Copy link
Author

I solved the problem.
I convert to rect.origin.x coordinates.
I flipped the this coordinates.

Thanks.

@pderrenger
Copy link
Member

Great to hear you've solved the issue! 🎉 Flipping the rect.origin.x coordinates is a smart approach when adjusting for the front camera's mirrored output. If you have any more questions or run into any other challenges, feel free to reach out. Happy coding!

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