https://github.com/by-sabbir/headposeestimation
Head Pose Estimation using OpenCV solving PNP.
https://github.com/by-sabbir/headposeestimation
computer-vision headpose-estimation opencv
Last synced: over 1 year ago
JSON representation
Head Pose Estimation using OpenCV solving PNP.
- Host: GitHub
- URL: https://github.com/by-sabbir/headposeestimation
- Owner: by-sabbir
- Created: 2020-06-20T11:49:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-30T23:44:45.000Z (almost 2 years ago)
- Last Synced: 2025-02-26T12:09:33.814Z (over 1 year ago)
- Topics: computer-vision, headpose-estimation, opencv
- Language: Python
- Homepage: https://sabbir.dev/article/real-time-head-pose-estimation-with-opencv-and-dlib/
- Size: 7.24 MB
- Stars: 106
- Watchers: 3
- Forks: 19
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.pexels.com/video/close-up-of-a-woman-showing-different-facial-expressions-3063839/)
## Installation
Using the package manager [pip](https://pip.pypa.io/en/stable/).
```bash
pip install -r requirements.txt
```
```bash
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
```