This package implements face recognition for Go using:
goface requires dlib v19.10 or greater and libjpeg dev packages to installed goface also requires build-essential & cmake if we have to build dlib
We mus build the latest version of dlib:
make dlib
make install-deps
Latest versions of Ubuntu and Debian provide dlib packages v19.10 or greater so we can just run:
sudo apt-get install libdlib-dev libopenblas-dev libjpeg-turbo8-dev
goface uses the dlib models shape_predictor_5_face_landmarks.dat
and dlib_face_recognition_resnet_model_v1.dat
Run the make command to pull from our mirror:
make models
You can also download these from the dlib-models repo:
mkdir models && cd models
wget https://github.com/davisking/dlib-models/raw/master/shape_predictor_5_face_landmarks.dat.bz2
bunzip2 shape_predictor_5_face_landmarks.dat.bz2
wget https://github.com/davisking/dlib-models/raw/master/dlib_face_recognition_resnet_model_v1.dat.bz2
bunzip2 dlib_face_recognition_resnet_model_v1.dat.bz2
To use goface:
import "github.com/intwineapp/goface"
To install:
go get github.com/intwineapp/goface
First run:
make all
Subsequent runs:
make test