opencv/README.md
2023-03-05 23:53:04 +08:00

298 B

编译命令

mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/Users/yaha/Code/github/opencv/output ..
make -j8
make install

使用方式

set(OpenCV_DIR "/Users/yaha/Code/github/opencv/lib/cmake/opencv4")
find_package(OpenCV REQUIRED)