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

Camera orientation #165

Closed
jacquesfeng123 opened this issue May 14, 2021 · 3 comments · Fixed by #296
Closed

Camera orientation #165

jacquesfeng123 opened this issue May 14, 2021 · 3 comments · Fixed by #296
Labels
sect:sample app Issue about sample app type:support Support issue

Comments

@jacquesfeng123
Copy link

I am trying to run FaceDetection on Unity.

When I run on my macbook, the FaceDetection works perfectly.

However, when I run on IOS or android, the facemesh is at best 90 degree rotated in the z axis, most often random, and quite often flashing (not being able to detect the face). The iris are also jumping all over the place.

Also each time I set the playerSettings - player - default orientation to different orientations, it goes nuts.

WebCamTexture.videoRotationAngle does not fix that.

I suspect it has to do with the auto-rotation/gyro capabilities of the phone, but I do not know how to fix that. Please Help.

@emreboyraz0
Copy link

Did you find any solution?

@emreboyraz0
Copy link

For Portrait mode give 90 to MainCamera's z index of rotation.

@ROBYER1
Copy link

ROBYER1 commented Oct 27, 2021

If you are on older commits before the new sample app, for example using Mediapipe 0.8.4 or lower, this is my solution to the camera rotation when using a sample like the pose graph to get the pose points and on screen webcamtexture rotated correctly.

#131 (comment)

@homuler homuler added type:support Support issue sect:sample app Issue about sample app labels Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sect:sample app Issue about sample app type:support Support issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants