Antoine Lamé
Antoine Lamé
Hi Harry, It's complicated to help you without more information. Can you share me screenshots and coordinates of pupils you get?
Hi @codeYazar > what does it mean , especially [-2] in moments = cv2.moments(contours[-2]) The algorithm detects faces, eyes and then processes the frame to get that:  The black...
To have the relative coordinates of the pupils, without the position of the head having any impact, you can change: ```python def pupil_left_coords(self): """Returns the coordinates of the left pupil"""...
Hi @wittynerd, `gaze.horizontal_ratio()` and `gaze.vertical_ratio()` return ratios to know the gaze direction. It doesn't return any coordinates, and you shouldn't try to get coordinates from it. Instead, you should use...