this software is used to face recognition
it based on pyncnn
pyncnn is a python wrapper of ncnn with pybind11, only support python3.x now.
it use the retinaface for detect face
and use mobilefacenetv3 for generate 128 dimension face feature vector
My weichat id: Rainfly003
It would be appreciated if you buy me a cup of coffee.
-
gen.py used to generate face features file,
it scans all the images in the dirctory which you input as a command parameter
and generate featues file use pickle module -
main.py used to find the images that have the most 10 highest similarity with the image you input
-
mbfn.py is the mobile face net Class
-
retiface.py is used to detect face region and 5 points (left eye, right eye , nose, left/right mouth corner)
please install PySimpleGui, numpy, PIL and opencv at first
then
git clone https://github.com/rainfly123/mobilefacenet-ncnn/
cd mobilefacenet-ncnn
cd gui
git submodule update --init --recursive
the sfas module is used for Silent-Face-Anti-Spoofing