a tiny go- face based face recongnition lib
tinyface require go-face to compile. go-face need to have dlib (>= 19.10) and libjpeg development packages installed.
Ubuntu 18.10+, Debian sid Latest versions of Ubuntu and Debian provide suitable dlib package so just run:
sudo pacman -S dlib blas atlas lapack libjpeg-turbo
sudo apt-get install libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg-turbo8-dev
sudo apt-get install libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg62-turbo-dev
Make sure you have Homebrew installed.
brew install dlib
Make sure you have MSYS2 installed.
- Run MSYS2 MSYS shell from Start menu
- Run
pacman -Syu
and if it asks you to close the shell do that - Run
pacman -Syu
again - Run
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-dlib
- If you already have Go and Git installed and available in PATH uncomment
set MSYS2_PATH_TYPE=inherit
line in msys2_shell.cmd located in MSYS2 installation folder,Otherwise runpacman -S mingw-w64-x86_64-go git
- Run MSYS2 MinGW 64-bit shell from Start menu to compile and use go-face
Try to install dlib/libjpeg with package manager of your distribution or compile from sources. Note that go-face won't work with old packages of dlib such as libdlib18. Alternatively create issue with the name of your system and someone might help you with the installation process.
- https://github.com/Kagami/go-face
- https://github.com/leandroveronezi/go-recognizer
- https://hackernoon.com/face-recognition-with-go-676a555b8a7e
Currently shape_predictor_5_face_landmarks.dat, mmod_human_face_detector.dat and dlib_face_recognition_resnet_model_v1.dat are required. You may download them from 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
wget https://github.com/davisking/dlib-models/raw/master/mmod_human_face_detector.dat.bz2
bunzip2 mmod_human_face_detector.dat.bz2
you can also use go-face 's testdata repo