Opencv - detecting whether the eye is closed or open

后端 未结 2 410
余生分开走
余生分开走 2021-01-01 05:37

Hi guys I am working on a project where we are trying to detect whether the eye is closed or open in a picture ... what we done so far is that we detected the face then the

相关标签:
2条回答
  • 2021-01-01 06:06

    You can check circles.cols() value if it is 2 then the eyes are open and if the value is 0 then the eyes are closed. You can also detect the blinking of eye if the value of circles.cols() changes from 2 to 0. Hough transform wil not detect a circle if the eyes are closed.

    0 讨论(0)
  • 2021-01-01 06:27

    Circular Hough transform is unlikely to work well in the majority of cases i.e. where the eye is partially open or closed. You'd be better off isolating rectangular regions (bounding boxes) around the eyes and computing a measure based on pixel intensities (grey levels). For example the variance of pixels within the region would be a good discriminator between open and closed eyes. Obtaining a bounding box around the eyes can be done quite reliably using relative position from the bounding box detected around the face using OpenCV Haar cascades. Figure 3 in this paper gives some idea of the location process.

    http://personal.ee.surrey.ac.uk/Personal/J.Collomosse/pubs/Malleson-IJCV-2012.pdf

    0 讨论(0)
提交回复
热议问题