State of art the Head Pose Estimation in Tensorflow2
This repository includes:
-
"WHENet: Real-time Fine-Grained Estimation for Wide Range Head Pose" (BMVC 2020). adapted from the original source code.
-
RetinaFace: Single-stage Dense Face Localisation in the Wild adapted from https://github.com/StanislasBertrand/RetinaFace-tf2.
Install
You can install this repository with pip (requires python>=3.6);
pip install headpose_estimation
pip install git+https://github.com/geekysethi/headpose_estimation
You can also install with the setup.py
With Face Detection
To perform detection you can simple use the following lines:
import cv2
from headpose_estimation import Headpose
headpose = Headpose()
img = cv2.imread("path_to_im.jpg")
detections,image = headpose.run(img)
This will return a list of dictionary which looks like this [{'bbox': [xmin, ymin, xmax, ymax], 'yaw': yaw_value, 'pitch': pitch_value, 'roll': roll_value}
Without Face Detection
To perform detection you can simple use the following lines:
import cv2
from headpose_estimation import Headpose
headpose = Headpose(face_detection=False)
imgcrop = cv2.imread("path_to_im.jpg")
detections,image = headpose.run(imgcrop)
In this case it will return a list of dictionary which looks like this [{'yaw': yaw_value, 'pitch': pitch_value, 'roll': roll_value}
Dependncies
- EfficientNet https://github.com/qubvel/efficientnet
Metadata
Release files for headpose-detection 0.0.4
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 |
|---|---|---|---|---|
| headpose_detection-0.0.4.tar.gz | 16.3 MB | Without provenance | Details for headpose_detection-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| headpose_detection-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for headpose_detection-0.0.4-py3-none-any.whl |
Total release size: 32.6 MB
Release files / headpose_detection-0.0.4.tar.gz
| Download URL | headpose_detection-0.0.4.tar.gz |
|---|---|
| Size | 16.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
978cfbbaa03ce8611dfecc18d3773f4360dfe6d7dbe856abc4f57c997b5d33fc
|
|
BLAKE2b-256 checksum How to use checksums |
35e2c51e37da9136df34485c7d16cf5cf2b6739cb751cad3f6760c956fc9068c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.15
|
Release files / headpose_detection-0.0.4-py3-none-any.whl
| Download URL | headpose_detection-0.0.4-py3-none-any.whl |
|---|---|
| Size | 16.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
647e9ad232c380419665179d6f3ca1668d949b3f33ba7ff260a2a53a802fc9b6
|
|
BLAKE2b-256 checksum How to use checksums |
31aa2b359cb464ec91305d496d33a830fd453aeb1f74a5393fa0312d093d42c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.15
|
Security for headpose-detection 0.0.4
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.