face_recognition是Python的一個開源人臉識別庫,支持Python 3.3+和Python 2.7。引用官網介紹:css
Recognize and manipulate faces from Python or from the command line with the world's simplest face recognition library.python
我目前的開發環境是,操做系統:Win10,Python3.6:Anaconda集成開發環境。在安裝 face_recognition的過程當中花費了一些時間,因此把安裝過程記錄下來。spa
使用pip安裝操作系統
pip install face_recognition
若是安裝失敗了,那基本上是由於依賴的dlib庫安裝失敗了,須要手動安裝。網上介紹的安裝dlib庫的方法大都很複雜,須要下載源代碼,而後手動編譯。3d
一、下載
dlib-19.8.1-cp36-cp36m-win_amd64.whlcode
二、安裝ip
pip install dlib-19.8.1-cp36-cp36m-win_amd64.whl pip install dlib pip show dlib #驗證dlib是否安裝成功
一、下載 face_recognition_models 0.3.0md5
二、解壓壓縮包,進入face_recognition_models-0.3.0目錄,安裝開發
python setup.py install pip show face_recognition_models
一、下載 face_recognition 1.0.0
二、解壓壓縮包,進入face_recognition目錄,安裝get
python setup.py install pip show face_recognition