Skip to content

by-sabbir/HeadPoseEstimation

Repository files navigation

Head Pose Estimation - OpenCV

In computer vision pose estimation specifically refers to the relative orientation of the object with respect to a camera. Pose estimation often referred to as a Perspective-n-Point problem or PNP problem in computer vision.


sample video credits

Installation

Using the package manager pip.

pip install -r requirements.txt
cd models
bash downloader.sh
cd ..

Usage

Get Pose From Image

python head_pose_from_image.py -h

Get Pose From Webcame

python head_pose_from_webcam.py -h

#### For source 0 and focal length 1
python head_pose_from_webcam.py -f 1 -s 0

3D model visualization

python Visualize3DModel.py