Skip to content
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

Open
aznn opened this issue Nov 4, 2013 · 9 comments
Open

Check if eyes are closed #2

aznn opened this issue Nov 4, 2013 · 9 comments

Comments

@aznn
Copy link

aznn commented Nov 4, 2013

Can this be used to check if the eyes are closed?

@trohit920
Copy link

@trishume Can we use this for calculating eye blinks or simply for checking eye closing?
@AeonAxan How did you solve this problem. Any help will be appreciated.

@trishume
Copy link
Owner

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.

@Joshua27
Copy link

I think you would probably detect a lot of false positives when using eyeLike for blink detection.
Of course, this depends on the illumination and the chosen metric which classifies maximum values to be "low" compared to previous values.
Another problem of this approach could be that the eyes might be initially closed leading to a corrupted sequence of maximum values.
@trohit920 I think it is a better approach to use facial landmark detection and compute the eye aspect ratio in order to detect eye blinks.
For instance, here you can find a good tutorial: https://www.pyimagesearch.com/2017/04/24/eye-blink-detection-opencv-python-dlib/

@trohit920
Copy link

trohit920 commented Feb 19, 2019

@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.

@trishume
Copy link
Owner

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 maxVal.

@trohit920
Copy link

trohit920 commented Feb 19, 2019 via email

@trishume
Copy link
Owner

Yah sounds like you're probably better off using facial landmark detection.

@trohit920
Copy link

trohit920 commented Feb 20, 2019

@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.

@trishume
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants