Hi, I am new to opencv. I need help, I am working on Ubuntu and programming in C, I have detected the eye blink of a person and now I want to make a pattern such that if a person blink continuously say if person blink thrice in 3- 4 seconds then make pattern.I thought of a logic But dnt know how to implement it, Here it is, Store the start and end time of the blink in 2 arrays, Then check the End time of second blink and subtract it from start time of the first blink and set the threshold of 3-4 seconds, if subtraction is more than threshold, discared it, if not go for the next blink start time of first blink and endtime of third blink. If 3 blinks found in 3-4 sec called it as pattern found. I am new to C also, So it will be great, if some body can help me out.Thanking in anticipation.