Ask Your Question

Revision history [back]

Eye detection and tracking

recently many questions were asked about the eye detection. for practise purpose, i tried to implement an initial code about this subject.

my main idea is based on detecting the eye pair and later track them.

  • firstly i used Multitracker class to track detected eyes but results were not satisfactory
  • secondly i tried to use matchTemplate function, it was better than Multitracker
  • lastly i tried to do eye detection on image ROI (the part of image that eye pair found before) results are better than my prior trials.

the code can be found on github

any suggestion about the code is welcome

Eye detection and tracking

recently many questions were asked about the eye detection. for practise purpose, i tried to implement an initial code about this subject.

my main idea is based on detecting the eye pair and later track them.

  • firstly i used Multitracker class to track detected eyes but results were not satisfactory
  • secondly i tried to use matchTemplate function, it was better than Multitracker
  • lastly i tried to do eye detection on image ROI (the part of image that eye pair found before) results are better than my prior trials.

the code can be found on github

any suggestion about the code is welcome

EDIT 1

i found a good sample code on https://github.com/mc-jesus/face_detect_n_track

i will try to improve this code.

to test it you can look at VideoFaceDetector-Demo.cpp