Skip to main content

Head pose estimation module

Project description

State of art the Head Pose Estimation in Tensorflow2

This repository includes:

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

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

headpose_detection-0.0.4.tar.gz (16.3 MB view hashes)

Uploaded Source

Built Distribution

headpose_detection-0.0.4-py3-none-any.whl (16.3 MB 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