pymovements.Gaze.detect#
- Gaze.detect(method: Callable[[...], Events] | str, *, eye: str = 'auto', clear: bool = False, **kwargs: Any) None[source]#
Detect events by applying a specific event detection method.
- Parameters:
method (Callable[..., Events] | str) – The event detection method to be applied.
eye (str) – Select which eye to choose. Valid options are
auto,left,rightorNone. Ifautois passed, eye is inferred in the order['right', 'left', 'eye']from the available columns insamples. (default: ‘auto’)clear (bool) – If
True, event DataFrame will be overwritten with a 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.