NativeSensors/EyeGestures
NativeSensors/EyeGestures has 660 GitHub stars and 69 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 23:42 UTC. Last push 2026-10-12.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
gaze tracking software
Developer ToolsREADME.md
Original
EYEGESTURES
EyeGestures is open source eyetracking software/library using native webcams and phone camers for achieving its goal. The aim of library is to bring accessibility of eye-tracking and eye-driven interfaces without requirement of obtaining expensive hardware.
Our Mission!
[!Warning] Before contributing read the
contributing.mdguide!
π Sponsors:
[!IMPORTANT]
EyeGestures is a fully volunteer-based project and exists thanks to your donations and support.π’π’ If you are bussiness and would like to collaborate, reach us: [email protected] π’π’
We are happy to be involved in your project!
π¨ Projects build with EyeGestures:
- EyePilot - waiting to be restored
- EyePather - discontinued
- EyeFocus
- Add your project! [email protected] or PR
π» Install
python3 -m pip install eyeGestures
[!WARNING] some users report that mediapipe, scikit-learn or opencv is not installing together with eyegestures. To fix it, just install it with pip.
βοΈ Try
Tracker works best when your camera or laptop is at arm's length, similar to how you would typically use it. If you are further away, it may be less responsive for now - currently working on solving this issue.
python3 examples/simple_example_v4.py
π§ Build your own:
Engine V4 - Rust based enginee:
JS - webbrowser
- External dependencies CDNs:
<script src="https://www.lactame.com/lib/ml/6.0.0/ml.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/11.8.0/math.min.js"></script>
- You need two CDN links:
<link rel="stylesheet" href="https://eyegestures.com/eyegestures.css">
<script src="https://eyegestures.com/eyegestures.js"></script>
- Place video element (which can be hidden) somewhere in the page together with status and error divs (can stay invisible):
<video id="video" width="640" height="480" autoplay style="display: none;"></video>
<div id="status" style="display : none;">Initializing...</div>
<div id="error" style="display : none;"></div>
- Then javascript interface code:
<script>
function onPoint(point,calibration){
point[0]; // x
point[1]; // y
calibration; // true - for calibrated data, false if calibration is ongoing
};
const gestures = new EyeGestures('video',onPoint);
// gestures.invisible(); // to disable blue tracker
gestures.start();
</script>
Python
from eyeGestures.utils import VideoCapture
from eyeGestures import EyeGestures_v4
# Initialize gesture engine and video capture
gestures = EyeGestures_v3()
cap = VideoCapture(0)
calibrate = True
screen_width = 500
screen_height= 500
# Process each frame
while True:
ret, frame = cap.read()
event, cevent = gestures.step(frame,
calibrate,
screen_width,
screen_height,
context="my_context")
if event:
cursor_x, cursor_y = event.point[0], event.point[1]
fixation = event.fixation
saccades = event.saccadess # saccadess movement detector
# calibration_radius: radius for data collection during calibration
Legacy Enginees:
With release of V4 rust based engine shared betweeen all eyegestures versions (web and desktop), fully pythonic enginees become deprecated. This decision was driven by trying to achieve single algorithm powering eyegestures application. Keeping multiple different enginees was beyond ability to maintain it. Source code can still be found in src/Legacy.
π₯ Web Demos:
rules of using
If you are building publicly available product, and have no commercial license, please mention us somewhere in your interface.
π Find us:
- discord
- daily.dev
- email: [email protected]
Troubleshooting:
- some users report that
mediapipe,scikit-learnoropencvis not installing together witheyegestures. To fix it, just install it withpip.
Missing feature or facing a bug?
Create new issue so we can tackle it!
π» Contributors
π΅ Support the project
We will be extremely grateful for your support: it helps to keep server running + fuels my brain with coffee.
Support project on Polar (in exchange we provide access to alphas versions!):