eye-detection

Opencv - detecting whether the eye is closed or open

谁都会走 提交于 2019-11-30 10:34:53
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 eyes and then we applied hough transform hoping that the Iris would be the only circle when the eye is open the problem is that when the eye is closed ... it produces a circle as well Here is the code: import org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.core.MatOfRect; import org.opencv.core.Point; import org.opencv.core.Rect; import org.opencv.core.Scalar; import org.opencv.core.Size; import org