Skip to content

[FEATURE] Post-hoc blink detection #19

Description

@qian-chu

Feature Description

Neon already outputs blinks events. However, it sometimes fails to detect blinks, and the duration of blinks are often underestimated. Several post-hoc algorithms exist to detect blinks and durations thereof post hoc. It could be nice to incorporate them as a detect_blinks() method of Stream (eye states).

Proposed Solution

detected_blinks : Events = eye_states.detect_blinks(eye, source, method, parameters)

eye could be:

  • "left"
  • "right"
  • "both" (averages channels from left and right, default)

source could be:

  • "pupil" (uses pupil diameter left/right [mm] column)
  • "eyelid" (uses eyelid aperture left/right [mm] column, default?)

method flag could be:

The output Events instance follows the same structure as other blinks (https://docs.pupil-labs.com/neon/data-collection/data-format/#blinks-csv).

Metadata

Metadata

Assignees

Labels

new featureNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions