EyeLoop detects blinking by monitoring changes in the monochromatic spectrum (= changes in the mean brightness of the frame).
It turns out that blinks produce very distinct patterns in the mean value when viewed over time, which can be used to detect blinking. How to threshold this pattern depends on the species monitored (eg human, mice) and the general properties of the image (eg contrasts). Thus, we have to normalise this function to improve detection across species and footage types.
Get started
check_blink() is found in /eyeloop/engine/engine.py. For human and mice test footage, click here.
Background
EyeLoop detects blinking by monitoring changes in the monochromatic spectrum (= changes in the mean brightness of the frame).
It turns out that blinks produce very distinct patterns in the mean value when viewed over time, which can be used to detect blinking. How to threshold this pattern depends on the species monitored (eg human, mice) and the general properties of the image (eg contrasts). Thus, we have to normalise this function to improve detection across species and footage types.
Get started
check_blink()
is found in /eyeloop/engine/engine.py. For human and mice test footage, click here.Best, Simon