how to detect eye blink in matlab through webcam

10 ビュー (過去 30 日間)
jagadevan v
jagadevan v 2015 年 2 月 10 日
コメント済み: naveed ashraf 2018 年 12 月 10 日
hello, i m doing project on eye blink and face turn detection using matlab. i have completed the face turn detection, but i m struck with eye blink detection. i m monitoring the right eye i m able detect the eye in real time using continuous snaps through webcam, but not able to detect the blink ..i have ploted eye ,graph & face in a figure.with what value should i compare the detected eye image to find weather eye is open or close???? i m uploading my code, please help me in finding the blink detection.
clc;
close all;
clear all;
cam=webcam; c1=0;
EyeDetect = vision.CascadeObjectDetector('EyePairBig');
for co=0:650
I=snapshot(cam);
BB1=step(EyeDetect,I);
ay=sum(BB1(:));
if(ay==0)
c1=c1+1;
if(c1==100)
disp('turn the face');
end
else
Eyes=imcrop(I,BB1);
k=size(Eyes);
l2=k(2)/3;
w=round(l2);
ey=imcrop(Eyes,[0 0 l2 k(1)]);
figure (1),
subplot(3,1,1)
imshow(ey);
k2=size(ey);
a=rgb2gray(ey);
sa=sum(a(:));
subplot(3,1,2)
plot(1:size(a,1),mean(a,2));
c1=0;
subplot(3,1,3)
imshow(I);
clc;
end
end
  2 件のコメント
Deepak Chaitanya
Deepak Chaitanya 2018 年 10 月 9 日
You Can Detect eyes by Bio ID dataset which is available in bioid.com
naveed ashraf
naveed ashraf 2018 年 12 月 10 日
Dear can you me to detect eye blink. I got projject eye blink counter in 10 sec. if you help me i will pay.

サインインしてコメントする。

回答 (1 件)

Giorgio De Nunzio
Giorgio De Nunzio 2015 年 11 月 15 日
Hi, I imagine that after so much time you managed to solve your problems with this algorithm for eye blink detection. If you did, is there any code you can share with me? I am beginning to work on an application requiring bliking detection, so it would be great to have some working code to play with. In the opposite case, if you are still working on the problem, I would be glad to contribute. Best regards Giorgio

カテゴリ

Help Center および File ExchangeEye Tracking についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by