This tool allows you to automatically crop and align Pupil-Capture-defined surface areas from an external image of the actual surface.
Caveats:
- The script will assume that the provided image is not distorted.
import pandas as pd | |
recording_hdf5 = pd.HDFStore(path_to_hdf5_file, "r") | |
binocular_data = recording_hdf5[ | |
"/data_collection/events/eyetracker/BinocularEyeSampleEvent" | |
] | |
monocular_data = recording_hdf5[ | |
"/data_collection/events/eyetracker/MonocularEyeSampleEvent" | |
] |
import json | |
import logging | |
import pathlib | |
from plugin import Plugin | |
from pupil_recording import PupilRecording, RecordingInfo | |
logger = logging.getLogger(__name__) | |
import abc | |
import collections | |
import json | |
import logging | |
import pathlib | |
import threading | |
import time | |
from typing import Deque, Mapping, NamedTuple, Optional, Type, Union | |
try: |
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:
msgpack>=1.0.0 | |
pyzmq |
The components below allow Pupil Core to calibrate gaze for separate head-mounted displays. As a result, Pupil Core can estimate gaze within custom target coordinate systems for each eye. This is different from the dual-monocular calibrations which calibrate each eye separately but assume the target coordinate system to be the same for both eyes.
There are three major components:
import logging | |
from pyglui import ui | |
from video_overlay.controllers.overlay_manager import OverlayManager | |
from video_overlay.models.config import Configuration | |
from video_overlay.plugins.generic_overlay import Video_Overlay | |
from video_overlay.ui.management import UIManagementGeneric | |
from video_overlay.ui.menu import GenericOverlayMenuRenderer | |
from video_overlay.utils.constraints import ConstraintedValue, InclusiveConstraint | |
from video_overlay.workers.overlay_renderer import OverlayRenderer |