The invention discloses a non-contact
blink detection method and
system based on a video
stream, and the method comprises the steps: 1, capturing an eye
video image sequence of a user in real time, calculating the average gray value of the ROI of the
left eye and the right eye in each frame of image, and forming a gray value data sequence of the
left eye and the right eye; step 2, maintaining a data sequence in a sliding window with a
fixed length L for the gray value
data sequences of the
left eye and the right eye; step 3, on the basis of the threshold parameter of the selected threshold mode, traversing the data sequence in the sliding window obtained in the step 2, determining an effective blink
wave crest, and calculating the normalized depth of the effective blink
wave crest; and 4, for the normalized decline depth of the effective blink
wave crest calculated in the step 3, carrying out joint judgment by adopting a double-threshold mechanism so as to judge a blink event. The method solves the problems that a
blink detection mode is extremely sensitive to the change of ambient light, so that misjudgment is easily caused, the ability of identifying the complete form of a blink
signal is lacked, and the robustness is poor.