Detection with Eye Openness (EO) Signal
- eyefeatures.preprocessing.blinks_extraction.detect_blinks_eo(eye_openness_signal, timestamps, Fs, gap_dur=30, filter_length=25, min_blink_length=15, min_amplitude=0.1, min_separation=100, return_eo_vel=False)[source]
Method detects blinks based on Eye Openness (EO) signal.
- Parameters:
eye_openness_signal (ndarray) – eye openness signal.
timestamps (ndarray) – data recording timestamps, ms.
Fs (int) – sample rate of eye tracker, Hz.
gap_dur (int) – max gaps between periods of data loss, ms.
filter_length (int) – length of Savitzky-Golay filter, ms.
min_blink_length (int) – min length of detected blinks, ms.
min_separation (int) – min time interval between detected blinks, ms.
min_amplitude (int) – fraction of fully opened eye.
return_eo_vel (bool) – if True, then computed velocity of EO signal is returned.
- Returns:
detected blinks dataframe.
- Return type: