Skip to main content

pygaze is a gaze estimation framework for python based on eth-xgaze.

Project description

pygaze

pygaze is a wrapper for the outstanding work of pytorch_mpiigaze_demo and eth-xgaze to provide an api to estimate the gaze of humans.

Buy Me A Coffee

API

  • First create an instance of PyGaze.
  • Call predict on the instance to get a list of faces in the image and a gaze vector.

Example usage

from pygaze import PyGaze
import cv2

image = cv2.imread("jonas.jpg")
pg = PyGaze()
print(pg.predict(image))

Todo

  • Add a flag to predict() to pass already detected faces in an image.
  • Add a function render(img, face) to draw the predicted gaze to an image.
  • Add examples for realtime and image prediction.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pygaze-0.1.0-py3-none-any.whl (18.5 kB view hashes)

Uploaded Python 3

Supported by

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