You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The entrance file is `estimate_head_pose.py`. This will use your usb camera as the video source for demonstration.
31
+
32
+
```bash
33
+
# From the project directory, run:
34
+
python3 estimate_head_pose.py
35
+
```
36
+
37
+
You can change the video source to any video file that OpenCV supports.
38
+
15
39
## How it works
16
40
17
41
There are three major steps:
@@ -22,15 +46,14 @@ There are three major steps:
22
46
23
47
3. Pose estimation. Once we got the 68 facial landmarks, a mutual PnP algorithms is adopted to calculate the pose.
24
48
25
-
## Miscellaneous
26
-
- The marks is detected frame by frame, which result in small variance between adjacent frames. This makes the pose unstaible. A Kalman filter is used to solve this problem, you can draw the original pose to observe the difference.
49
+
The marks is detected frame by frame, which result in small variance between adjacent frames. This makes the pose unstable. A Kalman filter is used to solve this problem, you can draw the original pose to observe the difference.
27
50
28
-
- The 3D model of face comes from OpenFace, you can find the original file [here](https://github.com/TadasBaltrusaitis/OpenFace/blob/master/lib/local/LandmarkDetector/model/pdms/In-the-wild_aligned_PDM_68.txt).
29
-
30
-
- The build in face detector comes from OpenCV. https://github.com/opencv/opencv/tree/master/samples/dnn/face_detector
31
51
32
52
## License
33
-
The code is licensed under the MIT license. However, the pre-trained TensorFlow model file is trained with various public data sets which have their own licenses. Please refer to them before using this code.
53
+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
54
+
55
+
## Acknowledgments
56
+
The pre-trained TensorFlow model file is trained with various public data sets which have their own licenses. Please refer to them before using this code.
(Currently we are trying to empower embeded devices to be more powerful with deep learning, please get in touch if you are interested and would like to join us.)
65
+
The 3D model of face comes from OpenFace, you can find the original file [here](https://github.com/TadasBaltrusaitis/OpenFace/blob/master/lib/local/LandmarkDetector/model/pdms/In-the-wild_aligned_PDM_68.txt).
66
+
67
+
The build in face detector comes from OpenCV. https://github.com/opencv/opencv/tree/master/samples/dnn/face_detector
68
+
69
+
To reproduce the facial landmark detection model, you can refer to this series of posts(in Chinese only).
70
+
71
+
## Finally
72
+
If you are interested in Deep Learning and happened to be seeking for a job opportunity, feel free to get in touch.
0 commit comments