-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check if eyes are closed #2
Comments
@trishume Can we use this for calculating eye blinks or simply for checking eye closing? |
It kind of can, not sure how well it would work compared to other possible solutions. Basically the algorithm produces a "centre-ness map" and instead of finding the highest point you look at the maximum value over time, and when the maximum value is low then it probably doesn't see the iris/pupil. |
I think you would probably detect a lot of false positives when using eyeLike for blink detection. |
@trishume Hey i want to know how can i check the maximum value. So when i tried closing my eyes, from visualization i can see that eyebrows are detected as pupil. I just want check what happens when eyes are closed. |
Sorry, it's not a beginner task. Please try to figure it out yourself by reading the code. For example the maximum value is in that file as |
@trishume Thanks for your response. I already checked output of maxVal. But it seems
to give same value for both pupil and eyebrows. I also cropped eye extraction in such a way that it only have eyes in side but then when i close my eyes, pupil appears on closed eye lashes.
|
Yah sounds like you're probably better off using facial landmark detection. |
@Joshua27 @trishume Thanks for your comments. I tried Dlib facial landmark detector for detecting landmarks and hence checking eye closing and opening using eye aspect ratio. But sometimes when eyes are closed landmark detector still detect it as open as it still finds an eye shape on closed eye lids. Also trained my own 31 point landmark detector but same issue appears. Please share your thoughts if something else can be done in eyeLike to check eye opening and closing or any other advice. |
I'm not sure. I've never tried to do closed eye detection. If you could get a dataset maybe a simple machine learning CNN classifier would do the trick. |
Can this be used to check if the eyes are closed?
The text was updated successfully, but these errors were encountered: