Coder Social home page Coder Social logo

jpazv / pupil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pupil-labs/pupil

0.0 0.0 0.0 30.36 MB

Open source eye tracking

Home Page: https://pupil-labs.com

License: GNU Lesser General Public License v3.0

Shell 0.07% Python 99.91% PowerShell 0.02%

pupil's Introduction

Pupil

Pupil Labs - Pupil Core software: open source eye tracking platform.

Open source eye tracking platform.

Pupil is a project in active, community driven development. Pupil Core mobile eye tracking hardware is accessible, hackable, and affordable. The software is open source and written in Python and C++ when speed is an issue.

Our vision is to create tools for a diverse group of people interested in learning about eye tracking and conducting their eye tracking projects.

Chat with us on Discord.

Users

Download the latest Pupil Core Apps: Pupil Capture, Pupil Player, Pupil Service

You don't need to know how to write code to use Pupil. Download the latest apps!

Read the Pupil Core user guide.

Developers

There are a number of ways you can interact with Pupil Core software as a developer:

  • Use the API: Use the network based real-time API to communicate with Pupil over the network and integrate with your application.
  • Develop a Plugin: Plugins are loaded at runtime from the app bundle. Note: if your plugin requires Python libraries that are not included in the application bundle, then you will need to run from source.
  • Run from Source: Can't do what you need to do with the network based api or plugin? Then get ready to dive into the inner workings of Pupil and run from source!

All setup and dependency installation instructions are contained in this repo. All other developer documentation is here.

Installing Dependencies and Code

To run the source code, you will need Python 3.7 or newer! We target Python 3.11 in our newer bundles and we recommend you to do the same.

Note: It is recommended to install the requirements into a virtual environment.

Note: On arm64 macs (e.g. M1 MacBook Air), use the python3.*-intel64 binary to create the virtual environment. We do not yet provide arm64-native wheels for the Pupil Core dependencies.

git clone https://github.com/pupil-labs/pupil.git
cd pupil
git checkout develop
python -m pip install -r requirements.txt

If you have trouble installing any of the dependencies, please see the corresponding code repository for manual installation steps and troubleshooting.

Linux

USB Access

To grant Pupil Core applications access to the cameras, run

echo 'SUBSYSTEM=="usb",  ENV{DEVTYPE}=="usb_device", GROUP="plugdev", MODE="0664"' | sudo tee /etc/udev/rules.d/10-libuvc.rules > /dev/null
sudo udevadm trigger

and ensure that your user is part of the plugdev group:

sudo usermod -a -G plugdev $USER
Audio Playback

The sounddevice package depends on the libportaudio2 library:

sudo apt install libportaudio2

Run Pupil

cd pupil_src
python main.py capture # or player/service

Command Line Arguments

The following arguments are supported:

Flag Description
-h, --help Show help message and exit.
--version Show version and exit.
--debug Display debug log messages.
--profile Profile the app's CPU time.
-P PORT, --port PORT (Capture/Service) Port for Pupil Remote.
--hide-ui (Capture/Service) Hide UI on startup.
<recording> (Player) Path to recording.

License

All source code written by Pupil Labs is open for use in compliance with the GNU Lesser General Public License (LGPL v3.0). We want you to change and improve the code -- make a fork! Make sure to share your work with the community!

pupil's People

Contributors

mkassner avatar papr avatar romanroibu avatar patrickfuerst avatar willpatera avatar marc-tonsen avatar pfaion avatar chingt avatar michaelbarz avatar ckbaumann avatar windsooon avatar emredog avatar cpicanco avatar pre-commit-ci[bot] avatar snleu avatar kadie123 avatar n-m-t avatar qandrew avatar bpinsard avatar euryalus avatar nathakits avatar mikelgg93 avatar fneitzel avatar moiri avatar siqube avatar polynomialdivision avatar cboulay avatar christopher22 avatar sbalk avatar smurakami avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.