Skip to content

Instantly share code, notes, and snippets.

import pathlib
import numpy as np
import OpenGL.GL as gl
from pyglui import ui, pyfontstash
from pyglui.cygl import utils as cygl_utils
import gl_utils
from plugin import Plugin
from pupil_recording import PupilRecording
@pfaion
pfaion / gaze_with_offset_correction.py
Last active October 1, 2020 08:48
Offset Corrected Gaze From Recording
from pyglui import ui
import file_methods as fm
import player_methods as pm
from gaze_producer.gaze_producer_base import GazeProducerBase
from methods import denormalize
from player_methods import transparent_circle
class GazeFromRecordingWithOffsetCorrection(GazeProducerBase):
@pfaion
pfaion / deduplicate_gaze.py
Created May 18, 2020 14:24
Deduplicate Gaze Timestamps
import numpy as np
from plugin import Plugin
from player_methods import Bisector
class DeduplicateGaze(Plugin):
@classmethod
def parse_pretty_class_name(cls) -> str:
return "(Custom) Deduplicate Gaze Timestamps"
@pfaion
pfaion / README.md
Last active December 6, 2020 22:18
pyrealsense2 video backend for Pupil Capture v1.22+

RealSense2 Backend for Pupil Capture v1.22+

With Pupil v1.22, built-in support for RealSense cameras was removed. See the release notes for more information. However, the previous code will still function and can be imported as a user plugin into Pupil Capture.

There are two different ways to setup and use this plugin:

1) Running Pupil from source

When running Pupil from source, you will have to install pyrealsense2, normally just with pip install pyrealsense2 into the environment you use to run Pupil. Then download the realsense2_backend.py file from this gist and place it into your pupil source folder in: pupil/pupil_capture_settings/plugins/realsense2_backend.py

@pfaion
pfaion / monitor_network.ipynb
Created January 30, 2020 14:41
Pupil Network Monitor
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.