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
Metadata
Release files for gazetimation 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gazetimation-0.2.3.tar.gz | 9.6 kB | Without provenance | Details for gazetimation-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gazetimation-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for gazetimation-0.2.3-py3-none-any.whl |
Total release size: 19.2 kB
Release files / gazetimation-0.2.3.tar.gz
| Download URL | gazetimation-0.2.3.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a52c2de89d4bdf59154ca193f2b2a19333f4a2a33570067257adad1c490de08
|
|
BLAKE2b-256 checksum How to use checksums |
0a8bd40d1cb26354b646cda2fc7f097355479b1e7788e43a32b6665baab0dddb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.2 Linux/5.15.0-1017-azure
|
Release files / gazetimation-0.2.3-py3-none-any.whl
| Download URL | gazetimation-0.2.3-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5846ee413caa28434b769687479d4795fbf587b4cd9cd2e65b91ef67122a665
|
|
BLAKE2b-256 checksum How to use checksums |
616778b26c3490181b5f09fbe04ed2c263a747caa4e3d7d900defb3290aec597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.2 Linux/5.15.0-1017-azure
|
Security for gazetimation 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.