We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Blink Detection (Read 515 times)
Blink Detection
Aug 4th, 2008, 6:28pm
 
Hi,

I'm looking for a way to make a program reactive by means of eye blink detection with a camera. Golan Levin also used this in a few of his projects by the way.

Is there some code available to get me started?

I'm only moderately experienced with Processing, but I figured I can use JMyron's face detection (which I have working), and blob tracking for the eyes. I read about an algorithm that makes a mean and a variance map for this area and based on that detects eye blinks. Of high priority is that the algorithm won't be very computationally intensive.

Does anyone of you have experience with something like this? Any help or code examples are highly appreciated!

thanks,
Ralph
Re: Blink Detection
Reply #1 - Aug 6th, 2008, 8:52pm
 
Ralph,

What a coincidence- I was just wishing to work on a similar project. I imagined painting one of my eyelids red and the other one blue, then polling the video frames to determine if either a red or blue blob is showing in a certain location.

If(red && !blue){
Clipboard.cut();
}
else if(!red && blue){
Clipboard.paste();
}

No more skilled usage of the mouse, or switching a hand to the keyboard, for copy paste!

Where did you see the similar code of Golan's?

Thanks,

David
Page Index Toggle Pages: 1