2024-09-29 16:25:07 +08:00
2024-09-28 22:12:28 +08:00
2024-09-28 22:05:53 +08:00
2024-09-28 22:12:28 +08:00
2024-09-29 16:25:07 +08:00
2024-09-28 22:12:28 +08:00
2024-09-29 16:25:07 +08:00

EyePy

made-with-python Open Source Love License: MIT GitHub stars

This is a Python library that provides webcam-based gaze tracking. Extract facial features, train gaze tracking model and predict gaze with super easy to use interface.

Usage Showcase

Demo

Installation

Clone this project:

git clone https://github.com/ck-zhang/EyePy

Install dependencies:

pip install -r requirements.txt

Interactive Demo

python gaze_estimatior.py

Usage

Initialization

from EyePy import GazeEstimator
gaze_estimator = GazeEstimator()

Feature Extraction

import cv2
image = cv2.imread('image.jpg')
features = gaze_estimator.extract_features(image)
print(features)

Training the Model

X = [...]  # Features
y = [...]  # Gaze coordinates
gaze_estimator.train(X, y)

Predicting Gaze Location

predicted_gaze = gaze_estimator.predict([features])
print(predicted_gaze)

Future Work

Any suggestions for features and improvements are welcome.

If you enjoyed using EyePy, consider giving it a star.

Description
EyePy is an eye tracking library easily implementable in your projcets
Readme MIT 351 KiB
Languages
Python 100%