pip install gazetimation
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.
If any issues are found, they can be reported here.
This project is licensed under the MIT license.