Skip to content

Instantly share code, notes, and snippets.

@nico-lab

nico-lab/face.sh

Last active Dec 25, 2020
Embed
What would you like to do?
media-autobuild_suiteでfacebl0r、facedetectモジュールを作る
#!/bin/bash
# opencv
cd build
git clone --depth 1 https://github.com/opencv/opencv
git clone --depth 1 https://github.com/opencv/opencv_contrib
git clone --depth 1 https://github.com/dyne/frei0r
mkdir opencv/build
mv opencv_contrib/modules/* opencv/modules
cp -R opencv/modules/calib3d/include/opencv2 opencv/build
cp -R opencv/modules/core/include/opencv2 opencv/build
cp -R opencv/modules/dnn/include/opencv2 opencv/build
cp -R opencv/modules/face/include/opencv2 opencv/build
cp -R opencv/modules/features2d/include/opencv2 opencv/build
cp -R opencv/modules/flann/include/opencv2 opencv/build
cp -R opencv/modules/highgui/include/opencv2 opencv/build
cp -R opencv/modules/imgproc/include/opencv2 opencv/build
cp -R opencv/modules/objdetect/include/opencv2 opencv/build
cp -R opencv/modules/photo/include/opencv2 opencv/build
cp -R opencv/modules/stitching/include/opencv2 opencv/build
cp -R opencv/modules/video/include/opencv2 opencv/build
cp -R opencv/modules/videoio/include/opencv2 opencv/build
cd opencv/build
cmake -GNinja .. -DOPENCV_CONFIG_INSTALL_PATH="/local64/lib/pkgconfig" -DCMAKE_BUILD_TYPE=Release -DOPENCV_LIBS="/build/opencv/build" -DOPENCV_GENERATE_PKGCONFIG=ON -DWITH_IPP=OFF -DWITH_TBB=OFF -DBUILD_opencv_flann=ON -DBUILD_opencv_photo=ON -DBUILD_opencv_highgui=OFF -DBUILD_opencv_ml=OFF -DBUILD_opencv_objdetect=ON -DBUILD_opencv_video=ON -DBUILD_opencv_imgcodecs=OFF -DBUILD_opencv_imgproc=ON -DBUILD_SHARED_LIBS=OFF -DOPENCV_PC_FILE_NAME=opencv.pc
ninja -j 2
ninja install
# frei0r
cd ../../frei0r
mkdir build
mkdir dll
cd build
cmake -GNinja .. -DOPENCV_CONFIG_INSTALL_PATH="/local64/lib/pkgconfig" -DCMAKE_BUILD_TYPE=Release -DOPENCV_LIBS="/build/opencv/build" -DOpenCV_DIR="/build/opencv/build" -DCMAKE_INSTALL_PREFIX=/build/frei0r/dll
ninja -j 2
ninja install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment