Dlib 臉部特徵提取、標註

這次要介紹的是Dlib for python

安裝pip
sudo apt-get install python-pip

安裝easy-install
sudo apt-get install python-setuptools

安裝PIL
sudo apt-get build-dep python-imaging
sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
sudo pip install Pillow

安裝numpy
sudo apt-get install python-dev

之後可以用easy-install 安裝numpy
sudo easy_install numpy

安裝scipy
sudo apt-get install python-scipy

安裝matplotlib
sudo apt-get install python-matplotlib

安裝dlib(官網左下方藍色按鈕)
http://dlib.net/files/dlib-19.5.zip
解壓縮後 在路徑下teminal打上 python setup.py install


安裝skimage
sudo apt-get install python-skimage

安裝imtools
sudo easy_install imtools

--------------------------------------------------------------------------------------------------

https://goo.gl/Z8Y8Ad
修改後的 face_detector文件 可開啟檢視內有註釋

python face_detector_2.py people.jpg


-------------------------------------------------------------------------------------------------

修改後的face_landmark_detection_2.py
那這邊來說需要再做修改 內部包含圖片的路徑
http://sourceforge.net/projects/dclib/files/dlib/v18.10/shape_predictor_68_face_landmarks.dat.bz2
及特徵點文件的模型

確認路徑無誤後再termianl中 打上 python face_landmark_detection_2.py


留言

這個網誌中的熱門文章

cifar 10 、 cifar100 圖片集

TX2 開箱 及使用JETPACK 刷機