顔の輪郭とか口の動き抽出するやつを今すぐパッと試したい。
Use Dlib and Python to perform face tracking for facial contours and mouth movements. It is immediately reflected and displayed on what was acquired by the WEB camera of the PC (Mac in this case). This article is a reminder to trace the Qiita article published in 2017 now.
Qiita article: Display the result of face landmark recognition of dlib with matplotlib in real time
Basically, I'm grateful to follow the above, but there are some changes.
Since the reference URL of the data file has been changed, download it separately and execute it.
https://www.kkaneko.jp/dblab/dlib/dlibface.html Refer to here,
http://dlib.net/files/ Open this and download and expand "shape_predictor_68_face_landmarks.dat.bz2".
In the program mentioned above
python
predictor_path = "hoge"
It is safe to specify the above file with the absolute path in the place of hoge.
I'm showing the bill to the camera of my PC. Of course, you can get a live-action face properly.
I would like to try if there is a method that can be recognized and displayed a little faster and that is absurd. I also want to judge facial expressions.
Recommended Posts