i made application eye detecting by following this link link and it work
how can i detect the eye is opened or closed ?
is there library in android to detect closed or opened
Asked
Active
Viewed 3,542 times
2
-
possible duplicate of [Opencv - detecting whether the eye is closed or open](http://stackoverflow.com/questions/20563835/opencv-detecting-whether-the-eye-is-closed-or-open) – harrane Mar 02 '15 at 11:55
-
1The new Android Face API supports detecting "eyes open" and "smiling": https://developers.google.com/vision/ – pm0733464 Aug 20 '15 at 19:40
1 Answers
5
I've no idea whether there is any library for that, but using technique descirbed in article Eye-blink detection system for human–computer interaction
by Aleksandra Królak and Paweł Strumiłło
(you can download it here and here and here is some simplified version) in my opinion is a good option. Generally this technique is quite simple:
- Find eye (or both eyes). Remember this part of image as a template.
- In next frame use some kind of corellation (authors used normalized cross correlation method, but you can try with other types - OpenCV has few types of correlation methods implemented) to find region similar to your template. Place with highest correlation value (most likely) will be eye.
- If correlation value > some_threshold_value than eye is open, otherwise it is closed.
Threshold value used by authors is in the article, but when i was using this technique i've used other value so most likely you will need to find value for your case on your own.

cyriel
- 3,522
- 17
- 34