This script reads raw Pupil Capture recordings and applies Pupil Player's Post-hoc Blink Detection algorithm.
Pupil confidence extraction code is based on this example. Blink detection algorithm adapted from Pupil Player source code.
Caveats:
- Only supports 2d pupil confidence, does not fall back to 3d pupil confidence if the former is unavailable