Building 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?
FYI: OpenCV has had CUDA support for a few years. The linked PR only adds CUDA support to the OpenCV DNN module.
I understand, sorry for my lack of precision. It looks like your CUDA implementation will make a fine impact on the DNN module though?
Yes, it adds a new backend to the DNN module which accelerates DNN inference on CUDA capable cards dramatically.