Open source · DIY · self-hosted

Build your own eye tracker.

Everything you need to capture where a person looks — from a modified webcam to a full pair of tracking glasses. Clear build guides, real code, and the computer-vision fundamentals behind pupil detection and gaze mapping.

3build paths
<$50typical parts cost
MITopen licence
The signal chain

How an eye tracker sees you.

Read it like a scanpath — each fixation is one stage the light and data pass through, in order.

01

Illuminate

Near-infrared LEDs light the eye. Invisible to the person, but it makes the pupil and reflections pop for the camera.

02

Capture

An IR-sensitive camera films the eye at speed. In IR the iris flattens out, so the dark pupil stands out sharply.

03

Detect the pupil

Software thresholds the frame and fits an ellipse to the darkest blob — the pupil — frame after frame.

04

Find the glint

The LED leaves a bright corneal reflection. The pupil-to-glint vector cancels out small head movement.

05

Map to gaze

A polynomial or homography maps that vector to a point on the screen or scene — the actual gaze estimate.

06

Calibrate

Look at a handful of known dots. Those pairs solve the mapping and pull the raw signal into real-world accuracy.

Bill of materials

What you'll actually need.

A baseline glasses build. Swap parts freely — the guides list tested alternatives for every line.

01IR eye cameraSmall USB camera with the IR-blocking filter removed, or a dedicated IR module.×1
02IR LEDs (850nm)Near-infrared emitters plus a current-limiting resistor to illuminate the eye.×2–4
03Frame or mountEyeglasses frame, 3D-printed arm, or headset bracket to hold the camera steady.×1
04IR-pass filterBlocks visible light so the sensor sees a clean infrared image of the eye.×1
05Host computerAny laptop or single-board computer to run the open-source tracking software.×1

A word on infrared safety

Infrared light is invisible, so you can't rely on your eyes to judge exposure. Keep LED power low, follow tested current limits, and read the infrared safety guide before building. Everything here is educational — build at your own risk.

Built in collaboration

Grounded in open research.

eyetrackers.org is developed alongside working eye-tracking and XR research — not scraped from spec sheets.

Dr. Jason Orlosky

Eye tracking · AR / VR · Human–computer interaction

Jason develops open-source software and DIY tutorials for eye tracking, augmented reality, and virtual reality. His tutorials, sample code, and videos at jeoresearch.com are the reference material behind the build paths on this site.

Ready when you are

Pick a path and start capturing gaze this week.