OpenCV ncnn 人脸识别(一)
1. ncnn
下载ncnn源码
Releases · Tencent/ncnn · GitHub
编译ncnn
打开mingw自带的终端
rd /s /q build mkdir build cd build cmake .. -G "MinGW Makefiles" ^ -DCMAKE_BUILD_TYPE=Release ^ -DNCNN_VULKAN=OFF ^ -DNCNN_BUILD_EXAMPLES=OFF ^ -DNCNN_BUILD_TESTS=OFF ^ -DNCNN_BUILD_TOOLS=ON ^ -DNCNN_OPENMP=ON ^ -DNCNN_AVX512=OFF ^ -DNCNN_WIN32_PTHREAD=ON ^ -DCMAKE_CXX_FLAGS="-D_WIN32_WINNT=0x0601 -DWINVER=0x0601 -DNTDDI_VERSION=NTDDI_WIN7" ^ -DCMAKE_C_FLAGS="-D_WIN32_WINNT=0x0601 -DWINVER=0x0601 -DNTDDI_VERSION=NTDDI_WIN7" mingw32-make -j4 mingw32-make install2. 下载模型文件
RetinaFace(mnet.25 已转好 ncnn)
模型仓库:https://github.com/nihui/ncnn-assets/tree/master/models
- mnet.25-opt.param: https://raw.githubusercontent.com/nihui/ncnn-assets/master/models/mnet.25-opt.param
- mnet.25-opt.bin: https://raw.githubusercontent.com/nihui/ncnn-assets/master/models/mnet.25-opt.bin
MobileFaceNet(ArcFace 轻量,ncnn param/bin)
仓库:GitHub - yeung908/mobileFacenet-ncnn: implementation of nccnn's mobileFacenet · GitHub
直链:
- mobilefacenet.param https://raw.githubusercontent.com/yeung908/mobileFacenet-ncnn/master/mobilefacenet.param
- mobilefacenet.bin https://raw.githubusercontent.com/yeung908/mobileFacenet-ncnn/master/mobilefacenet.bin
