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

some problems with the rear camera #88

Closed
Lookforward666 opened this issue Apr 7, 2023 · 3 comments
Closed

some problems with the rear camera #88

Lookforward666 opened this issue Apr 7, 2023 · 3 comments

Comments

@Lookforward666
Copy link

When I switch phone camera to back, like this CameraSelector.LENS_FACING_BACK. When the phone camera recognizes the hand, the real-time refresh node and line segment will not accurately fall on the hand, but slightly offset. This will not happen after switching to the front camera. How to optimize and deal with this problem?

@PaulTR
Copy link
Collaborator

PaulTR commented Apr 7, 2023

Hi @Lookforward666, which sample are you running? If it's face detection, then I'm betting it has to do with post scaling (The front and rear camera are mirrored).

Go into the helper file and remove postScale from like 261

            postScale(
                -1f,
                1f,
                imageProxy.width.toFloat(),
                imageProxy.height.toFloat()
            )

@Lookforward666
Copy link
Author

Thanks,it has been solved. By the way,I`m running gesture recognizer demo.

@PaulTR
Copy link
Collaborator

PaulTR commented Apr 7, 2023

Cool glad you got that working.

@PaulTR PaulTR closed this as completed Apr 7, 2023
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