Skip to main content

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

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)

Source distribution for gazetimation 0.2.3
File Size Uploaded
gazetimation-0.2.3.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gazetimation 0.2.3
File Interpreter ABI Platform
gazetimation-0.2.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page