Last active
January 14, 2023 18:09
-
-
Save Saafke/3e53662286ac3254d34b1d6b9e5b1604 to your computer and use it in GitHub Desktop.
Terminal command for building opencv with contrib modules and CUDA support.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake \ | |
-D CMAKE_BUILD_TYPE=RELEASE \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D INSTALL_PYTHON_EXAMPLES=ON \ | |
-D INSTALL_C_EXAMPLES=OFF \ | |
-D OPENCV_ENABLE_NONFREE=ON \ | |
-D WITH_CUDA=ON \ | |
-D WITH_CUDNN=ON \ | |
-D OPENCV_DNN_CUDA=ON \ | |
-D ENABLE_FAST_MATH=1 \ | |
-D CUDA_FAST_MATH=1 \ | |
-D CUDA_ARCH_BIN=6.1 \ | |
-D WITH_CUBLAS=1 \ | |
-D OPENCV_EXTRA_MODULES_PATH=/home/opencv_contrib/modules .. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment