Eye Blink Related
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.
- Store the start & end time of the blink in 2 arrays.
- 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.
- If subtraction is more than threshold, discard it, if not go for the next blink.
- 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