Ask Your Question
0

Eye Blink Related

asked 2013-03-25 03:38:29 -0600

Shreya gravatar image

updated 2013-03-25 10:00:05 -0600

Hi, I am new to opencv and I need help. I am working on Ubuntu and programming in C and I have detected the single eye blink of a person. Now I want to make a blinking pattern such that if a person blinks continuously (3 times in 3-4 seconds) the pattern is recognized.

I have thought of a logic but dont know how to implement it.

  1. Store the start & end time of the blink in 2 arrays.
  2. Then check the end time of a second blink and subtract it from start time of the first blink. Set a threshold of 3-4 seconds.
  3. If subtraction is more than threshold, discard it, if not go for the next blink.
  4. If 3 blinks found in 3-4 sec called it as pattern found.

I am new to C also, so it would be great if somebody could help me out. Thanking in anticipation.

Edited by Steven Puttemans to make the question and suggested approach actually clear

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-03-25 10:03:18 -0600

In order to be able to actually your question, post the code for the eye blinking. It seems weird to me that you can be able to detect an eye blink, but you don't succeed in creating a time substraction mechanism.

What is your output of your blink? How do you store it. More info could help us out.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-03-25 03:38:29 -0600

Seen: 757 times

Last updated: Mar 25 '13