Ask Your Question

Revision history [back]

Build OpenCV 4 with CUDA

I am so exited for the merging of the GSoC project enabling CUDA support in OpenCV!

However I am uncertain about the build procedure shown in this gist. I think I understand setting cmake build options like this:

cmake -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D WITH_CUDA=ON \
  -D WITH_CUDNN=ON \

Where do I set the "following option"

OPENCV_DNN_CUDA

then?

Build OpenCV 4 with CUDA

I am so exited for the merging of the GSoC project enabling CUDA support in OpenCV!

However I am uncertain about the build procedure shown in this gist. I think I understand setting cmake build options like this:

cmake -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D WITH_CUDA=ON \
  -D WITH_CUDNN=ON \

Where do I set the "following option"

OPENCV_DNN_CUDA

then?