Skip to main content

Gaze estimation from facial landmarks

Project description

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

Project details


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.3.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gazetimation-0.2.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file gazetimation-0.2.3.tar.gz.

File metadata

  • Download URL: gazetimation-0.2.3.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.2 Linux/5.15.0-1017-azure

File hashes

Hashes for gazetimation-0.2.3.tar.gz
Algorithm Hash digest
SHA256 4a52c2de89d4bdf59154ca193f2b2a19333f4a2a33570067257adad1c490de08
MD5 86d11bcd95e0a2c797e64b7150515260
BLAKE2b-256 0a8bd40d1cb26354b646cda2fc7f097355479b1e7788e43a32b6665baab0dddb

See more details on using hashes here.

File details

Details for the file gazetimation-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: gazetimation-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.2 Linux/5.15.0-1017-azure

File hashes

Hashes for gazetimation-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f5846ee413caa28434b769687479d4795fbf587b4cd9cd2e65b91ef67122a665
MD5 8978885a7b28712d58134f084f462a83
BLAKE2b-256 616778b26c3490181b5f09fbe04ed2c263a747caa4e3d7d900defb3290aec597

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page