antoinelame / GazeTracking

👀 Eye Tracking library easily implementable to your projects
MIT License
1.98k stars 528 forks source link

Problems using it on multiple faces #86

Open EniaLevy opened 7 months ago

EniaLevy commented 7 months ago

I use the code with a small modification, sending already cropped face images to it and skipping the face detection using dlib. This works well on a single face. However, in images with multiple faces or in a video stream, the algorithm never works beyond the first instance. It seems the pupils are not being found after the first.

Is this a recognizable problem? I suspect it has something to do with thresholding but I do not know how to go about and resetting the thresholds

EniaLevy commented 7 months ago

Further info: I believe the issue is originating within pupil.py or calibration.py. self.image_processing() is returning an unusable image, even from very clean frames. The findContours() function is not working since the thresholding is sending everything to 255 -- However, I can confirm that the eye_frame cropping is working correctly and until that step everything works correctly.