Another プロジェクト for the 11th Cloud Programming World Cup in 2023.
今年は、ペンシルバニアから東京まで行きましょう! もう一度,日本へ戻ってくる!
- Download and install Visual Studio 2022.
- Download and install OpenCV.
Reference: https://learnopencv.com/install-dlib-on-windows/
- Download dlib then extract the archive.
- Create a
build
folder in the parent folder ofdlib, docs, examples
, etc. - Type the following commands to build
dlib
.
cd build
cmake -G "Visual Studio 17 2022" `
-DJPEG_INCLUDE_DIR=..\dlib\external\libjpeg `
-DJPEG_LIBRARY=..\dlib\external\libjpeg `
-DPNG_PNG_INCLUDE_DIR=..\dlib\external\libpng `
-DPNG_LIBRARY_RELEASE=..\dlib\external\libpng `
-DZLIB_INCLUDE_DIR=..\dlib\external\zlib `
-DZLIB_LIBRARY_RELEASE=..\dlib\external\zlib `
-DCMAKE_INSTALL_PREFIX=install_debug ..
cmake --build . --config Debug --target INSTALL
cmake -G "Visual Studio 17 2022" `
-DJPEG_INCLUDE_DIR=..\dlib\external\libjpeg `
-DJPEG_LIBRARY=..\dlib\external\libjpeg `
-DPNG_PNG_INCLUDE_DIR=..\dlib\external\libpng `
-DPNG_LIBRARY_RELEASE=..\dlib\external\libpng `
-DZLIB_INCLUDE_DIR=..\dlib\external\zlib `
-DZLIB_LIBRARY_RELEASE=..\dlib\external\zlib `
-DCMAKE_INSTALL_PREFIX=install_release ..
cmake --build . --config Release --target INSTALL
- Dlib:
C:\dlib
- OpenCV:
C:\opencv
- haarcascade_frontalface_alt.xml:
C:\opencv\build\etc\haarcascades\haarcascade_frontalface_alt.xml
- shape_predictor_68_face_landmarks.dat:
C:\opencv\build\etc\shape_predictor_68_face_landmarks.dat