Face Recognition 是一个基于python的人脸识别框架,我们在此之上来实现人脸比对。
环境要求
Python 3.3+ or Python 2.7
macOS or Linux (Windows没有正式支持,但可能可以用)
我的环境
Python 3.5.2
ubuntu 16.04
首先,我们要安装python(有可能已经默认装好了)sudo apt-get install python3
安装pip3sudo apt-get install python3-pip
安装dlib,这个过程有点长
先安装基本包sudo apt-get install -y --fix-missing
build-essential
cmake
gfortran
git
wget
curl
graphicsmagick
libgraphicsmagick1-dev
libatlas-dev
libavcodec-dev
libavformat-dev
libgtk2.0-dev
libjpeg-dev
liblapack-dev
libswscale-dev
pkg-config
python3-dev
python3-numpy
software-properties-common
zip
克隆原代码git clone https://github.com/davisking/dlib.git
切换目录,编译cd dlib
mkdir build; c