OpenCV + libfacedetection + dlib + CUDA Face Recognition Demo
OpenCV 4.7.0
https://opencv.org/releases/
Download opencv-4.7.0-windows.exe
Extract opencv
folder to your prefer location.
Files in opencv
will be included in the opencv property of project.
CUDA Toolkit 12.1 Update 1
https://developer.nvidia.com/cuda-downloads
cuDNN v8.9.1 (May 5th, 2023), for CUDA 12.x
https://developer.nvidia.com/rdp/cudnn-download
Dlib v19.24
http://dlib.net/
-
Download
dlib-19.24.zip
and extractdlib-19.24
to the project root folder. ( In the same folder asFaceRecog
,libfacedetection
,EZ_Source
. )
-
Create a new folder named
build
underdlib-19.24
.
And then create a new folder namedx64
underbuild
.
- 3.1. Use CMake GUI to generate Visual Studio project.
Or - 3.2. Use Command Line, cd to
dlib-19.24\build\x64
folder and execute command:
cmake -G "Visual Studio 16 2019" -A x64 -T host=x64 ../../dlib
- Open VS project in
dlib-19.24\build\x64
. Build 'Release' version.
Make sure all directories in properties are correct.
-
Put the face pictures that want to be recognized into the folder:
faces
.
This folder should be in the same directory as the main program.
Like:N:\Development\FaceRecog\FaceRecog\x64\Release\faces
-
Open
FaceRecog\FaceRecog.sln
and make a Release x64 build.