Skip to content

Instantly share code, notes, and snippets.

@tikurahul
Created Aug 8, 2019
Embed
What would you like to do?
OpenCV 4.1 with CUDA

Installation Notes

Make sure you set -D BUILD_opencv_cudacodec=OFF.

cmake -D CMAKE_BUILD_TYPE=RELEASE \
	-D WITH_CUDA=ON \
	-D CUDA_ARCH_PTX="" \
        -D BUILD_opencv_cudacodec=OFF \ # 
	-D CMAKE_INSTALL_PREFIX=/usr/local \
	-D INSTALL_PYTHON_EXAMPLES=OFF \
	-D INSTALL_C_EXAMPLES=OFF \
	-D OPENCV_ENABLE_NONFREE=ON \
	-D OPENCV_EXTRA_MODULES_PATH=/home/rahulrav/Workspace/cv2/opencv_contrib/modules \
	-D PYTHON_EXECUTABLE=/home/rahulrav/.virtualenvs/ml/bin/python \
	-D BUILD_EXAMPLES=OFF ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment