Detection with Eye Openness (EO) Signal

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:

DataFrame | tuple[DataFrame, ndarray]