Gaze estimation from facial landmarks
Project description
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
Release history Release notifications | RSS feed
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.2.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for gazetimation-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bae59c4c200eae47236090ff78efbd4a1cf72b0c222d48eb39dfb49cfc1c1ba |
|
MD5 | 2b80b5f79a4b959859254b48c74ef43b |
|
BLAKE2b-256 | 73a1aeb1e102f076742705dab78a9c258d1bcac38bc20fedb9e5e35dfc2cfa49 |