Skip to main content

Gaze estimation from facial landmarks

Project description

Gazetimation

test Docs PyPI version License: MIT downloads Codacy Badge

An out of the box solution for gaze estimation. demo

Installation

pip install gazetimation

Usage

from gazetimation import Gazetimation
gz = Gazetimation(device=0) # or any other device id
gz.run()

To run a video file

gz.run(video_path='path/to/video')

To save as a video file

gz.run(video_output_path='path/to/video.avi')

The run method also accepts a handler function for further processing.

gz.run(handler=my_handler)

Attention

The handler function will be called by passing the frame and the gaze information

if handler is not None:
    handler([frame, left_pupil, right_pupil, gaze_left_eye, gaze_right_eye])

For more info check our docs

Issues

If any issues are found, they can be reported here.

License

This project is licensed under the MIT license.

Acknowledgement

This package was inspired from the amazing Medium post by Amit Aflalo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gazetimation-0.2.3.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

gazetimation-0.2.3-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page