# Image Processing/Analysis for Eye blink detection

I am working on a eye blink detection project in Matlab. By this moment I have been successfully extracted the images of pupil of eye from the real time video captured via a web cam.

But I am stuck at the process to differentiate the open eye pupil to the closed eye lid state.

1. Open eye pupil

2.closed eye lid

Could you please suggest me any image processing function or algorithm to differentiate between the two states.

(Attached images are the original/actual images extracted from the program on which image processing is to be done.)

• What methods have you tried? By simply looking at your samples, I think image difference should work assuming you can correctly segment "eye" area. – Tae-Sung Shin Mar 24 '14 at 19:46
• till now i have used mean intensity method to calculate values for a image, but it is not coming accurate under different set of environments, as lighting conditions for the image changes. and also it is a realtime program so storing images and then calculating the image difference would certainly increase its response time which is undesirable. – Vikas Mar 26 '14 at 7:34
• and i have been able to correctly segment the eye area using my program and the above attached images have been segmented using the code itself. could you suggest me any matlab image processing function/algorithm that i should try on the above set of images. – Vikas Mar 26 '14 at 7:41
• meanIntensity=mean2(pic); if meanIntensityValue>60 disp('Eye Closed') else disp('Eye Open') end using this algorithm but results get inaccurate during differnt light surroundings. – Vikas Mar 26 '14 at 7:52
• A blink is a rapid change in intensity for a short period. Rather than absolute thresholds, how about looking for small spikes in intensity. – geometrikal May 5 '14 at 21:35

## protected by jojek♦Dec 10 '18 at 11:54

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).