pymovements.Gaze.detect#

Gaze.detect(method: Callable[..., pm.Events] | str, *, eye: str = 'auto', clear: bool = False, **kwargs: Any) None[source]#

Detect events by applying a specific event detection method.

Parameters:
  • method (Callable[..., pm.Events] | str) – The event detection method to be applied.

  • eye (str) – Select which eye to choose. Valid options are auto, left, right or None. If auto is passed, eye is inferred in the order ['right', 'left', 'eye'] from the available columns in samples. (default: ‘auto’)

  • clear (bool) – If True, event DataFrame will be overwritten with new DataFrame instead of being merged into the existing one. (default: False)

  • **kwargs (Any) – Additional keyword arguments to be passed to the event detection method.