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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions