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
2022.3.4: head_pose_from_image.py 已经添加了一些注释
- 原理介绍:Head Pose Estimation using OpenCV and Dlib
- 设置焦距
- TODO: dlib 是做什么的
- 预测模型是做什么用的(shape_predictor_68_face_landmarks.dat)
Using the package manager pip.
pip install -r requirements.txt
cd models
bash downloader.sh
cd ..
python head_pose_from_image.py -h
python head_pose_from_webcam.py -h
#### For source 0 and focal length 1
python head_pose_from_webcam.py -f 1 -s 0
python Visualize3DModel.py