Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 2.35 KB

README.md

File metadata and controls

70 lines (47 loc) · 2.35 KB

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.