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

Face Detection Y Euler face orientation is inverse #48

Closed
FranPR9 opened this issue Dec 27, 2018 · 6 comments
Closed

Face Detection Y Euler face orientation is inverse #48

FranPR9 opened this issue Dec 27, 2018 · 6 comments

Comments

@FranPR9
Copy link

FranPR9 commented Dec 27, 2018

Step 2: Describe your environment

  • Android device: Samsung galaxy A3___

  • Android OS version: 5.1.1_

  • Google Play Services version: 14.7.99_

  • Firebase/Play Services SDK version: _____
    api 'com.google.firebase:firebase-invites:16.0.4'
    api 'com.google.firebase:firebase-messaging:17.3.4'
    api 'com.google.firebase:firebase-core:16.0.4'
    api 'com.google.android.gms:play-services-location:16.0.0'
    api 'com.google.android.gms:play-services-analytics:16.0.4'

    implementation 'com.google.firebase:firebase-ml-vision:18.0.1'
    implementation 'com.google.firebase:firebase-ml-vision-face-model:17.0.2'
    implementation 'com.google.firebase:firebase-ml-vision-image-label-model:17.0.2'

Step 3: Describe the problem:

In most of the devices that I have used, when you turn your head left the Y euler angle is positive and when turning right the angle is negative.
But in a Samsung Galaxy A3 Android 5.1.1 this is inverse, left negative and right positive.
Is there a way to know if the angles are inversed in an specific device?

Steps to reproduce:

  1. add the mlkit face recognition accurate mode code
  2. __ run the app and check te Euler y angle__
    3.- turn your head left and right

Observed Results:

Y Euler angle:
left negative and right positive.

Expected Results:

Y Euler angle:
left positive and right negative.

@the-dagger
Copy link

Hi @FranPR9
Looks like this is a known issue on Samsung and Oneplus devices.
Can you take a look at the following commend and let me know if the solution proposed there works for you?

google/cameraview#22 (comment)

@FranPR9
Copy link
Author

FranPR9 commented Dec 27, 2018

Hi @FranPR9
Looks like this is a known issue on Samsung and Oneplus devices.
Can you take a look at the following commend and let me know if the solution proposed there works for you?

google/cameraview#22 (comment)

Hi! thanks for the help, but I don't think It has so much to do with the image rotation.
i get the rotation from the device like this :
getActivity().getWindowManager().getDefaultDisplay().getRotation();
and it has the same(0) as other devices that have a "normal" Y euler face orientation angle.

@ulukaya ulukaya transferred this issue from firebase/quickstart-android Jun 30, 2020
@ulukaya ulukaya transferred this issue from another repository Jun 30, 2020
@tarun-nain
Copy link

Is this issue solved or there is some workaround for this? It is now 2020 and I am facing the same issue with Samsung Galaxy Note 8. The angles are inversed in the accurate mode.

@swiyu
Copy link
Collaborator

swiyu commented Aug 21, 2020

For ML Kit, we process the face detection with the incoming image. If the Y euler number is different, I suspect the image we received in ML Kit is flipped. Sorry, I do not have Samsung device at hand. Could you verify the image you send to ML Kit is different in Samsung Galaxy Note 8 device, comparing to other device?

@tarun-nain
Copy link

tarun-nain commented Aug 24, 2020 via email

@cs-googler
Copy link

Hi, sorry for the late reply. Have you tried CameraX? It helps to deal with many camera issues caused by device differences.

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

7 participants