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

The reason why somttimes iris_image_points will run out of range #13

Open
DannisMa opened this issue May 1, 2022 · 1 comment
Open

Comments

@DannisMa
Copy link

DannisMa commented May 1, 2022

image

If you will list index out of range in main iris_image_points[j, 0] = faces[0][j + 468][0], you need to check your face detector init.

image

You need to set refine_landmarks be Ture. It mean detector will detect detail.

@DannisMa DannisMa changed the title 似乎main.py 裡面的程式碼有部分有誤 The reason why somttimes iris_image_points will run out of range May 1, 2022
@mmmmmm44
Copy link
Owner

mmmmmm44 commented May 1, 2022

Thank you for mentioning this. I would like to add on a bit.

After an update, there is one more API option available, which is the "refinelandmarks". From the official description, it "further refine the landmark coordinates around the eyes and lips" and output 10 more landmarks around iris for enhanced iris tracking, in the expense of a bit extra computational power. That's why there is one more for-loop to get the extra iris points without affecting the original 468 landmarks.

There are further details in their website about the extra landmarks.
https://google.github.io/mediapipe/solutions/face_mesh#solution-apis

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