Build OpenCV 3.3.1 with CUDA 9.0 support
Removing OpenCV installed by JetPack before performing this script installation: $ sudo apt-get purge libopencv* [Step by step commands] $ cd ~ $ wget -O opencv.zip https://github.com/Itseez/opencv/archive/ 3.3.1 .zip $ unzip opencv.zip $ cd opencv $ wget -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/ 3.3.1 .zip $ unzip opencv_contrib.zip $ mkdir build $ cd build $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX= /usr/local - D WITH_CUDA=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D INSTALL_PYTHON_EXAMPLES=OFF ...