Skip to content

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

Open

Description

@DannisMa

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.

Activity

  1. changed the title [-]似乎main.py 裡面的程式碼有部分有誤[/-] [+]The reason why somttimes iris_image_points will run out of range[/+] on May 1, 2022
  2. mmmmmm44 commented on May 1, 2022

    @mmmmmm44
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions