A demo program of MPIIGaze and MPIIFaceGaze
With this program, you can runs gaze estimation on images and videos. By default, the video from a webcam is used.
(The original video is from this public domain.)
(The original image is from this public domain.)
To train a model, use this repository.
Quick start
Installation
pip install saurongaze
Run demo
saurongaze --mode eye
Usage
usage: saurongaze [-h] [--config CONFIG] [--mode {eye,face}]
[--face-detector {dlib,face_alignment_dlib,face_alignement_sfd}]
[--device {cpu,cuda}] [--image IMAGE] [--video VIDEO]
[--camera CAMERA] [--output-dir OUTPUT_DIR] [--ext {avi,mp4}]
[--no-screen] [--debug]
optional arguments:
-h, --help show this help message and exit
--config CONFIG Config file for YACS. When using a config file, all
the other commandline arguments are ignored. See https
://github.com/hysts/pytorch_mpiigaze_demo/configs/demo
_mpiigaze.yaml
--mode {eye,face} With 'eye', MPIIGaze model will be used. With 'face',
MPIIFaceGaze model will be used. (default: 'eye')
--face-detector {dlib,face_alignment_dlib,face_alignement_sfd}
The method used to detect faces and find face
landmarks (default: 'dlib')
--device {cpu,cuda} Device used for model inference.
--image IMAGE Path to an input image file.
--video VIDEO Path to an input video file.
--camera CAMERA Camera calibration file. See https://github.com/hysts/
pytorch_mpiigaze_demo/saurongaze/data/calib/sample_params.
yaml
--output-dir OUTPUT_DIR, -o OUTPUT_DIR
If specified, the overlaid video will be saved to this
directory.
--ext {avi,mp4}, -e {avi,mp4}
Output video file extension.
--no-screen If specified, the video is not displayed on screen,
and saved to the output directory.
--debug
While processing an image or video, press the following keys on the window to show or hide intermediate results:
l: landmarksh: head poset: projected points of 3D face modelb: face bounding box
References
- Zhang, Xucong, Yusuke Sugano, Mario Fritz, and Andreas Bulling. "Appearance-based Gaze Estimation in the Wild." Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. arXiv:1504.02863, Project Page
- Zhang, Xucong, Yusuke Sugano, Mario Fritz, and Andreas Bulling. "It's Written All Over Your Face: Full-Face Appearance-Based Gaze Estimation." Proc. of the IEEE Conference on Computer Vision and Pattern Recognition Workshops(CVPRW), 2017. arXiv:1611.08860, Project Page
- Zhang, Xucong, Yusuke Sugano, Mario Fritz, and Andreas Bulling. "MPIIGaze: Real-World Dataset and Deep Appearance-Based Gaze Estimation." IEEE transactions on pattern analysis and machine intelligence 41 (2017). arXiv:1711.09017
Metadata
Release files for saurongaze 0.0.1
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 |
|---|---|---|---|---|
| saurongaze-0.0.1.tar.gz | 7.3 MB | Without provenance | Details for saurongaze-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| saurongaze-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for saurongaze-0.0.1-py2.py3-none-any.whl |
Total release size: 7.3 MB
Release files / saurongaze-0.0.1.tar.gz
| Download URL | saurongaze-0.0.1.tar.gz |
|---|---|
| Size | 7.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a18e83feebeb2485e6d3d09b300bc7ae1cbb825e896df9d21f11b5ab989358b
|
|
BLAKE2b-256 checksum How to use checksums |
ee6c4c5fcb11415817d377e806669fccbb7c9326c66c8c6e8ce56132dd1de909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / saurongaze-0.0.1-py2.py3-none-any.whl
| Download URL | saurongaze-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 26.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a001e64ad9886e6ec843a6669acc10d6deff04a15bf781e3eb5543f7d7a7afc2
|
|
BLAKE2b-256 checksum How to use checksums |
cc99ecf2c2701245ccb14340fa964338d4afef110eac65f73f5776097c1758e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Security for saurongaze 0.0.1
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.