OpenCV Installation with CUDA in Ubuntu 18.04

WesleyCh3n
Sep 9, 2021

--

This is the note that I setup OpenCV 4.5.0 with GPU support (CUDA) for the use of darknet image pre-processing. So, installation might miss some regular prerequisite library like GTK functionalities that I don’t need.

You can change the version you prefer. For cmake option, make sure

-D WITH_CUDA=ON \
-D WITH_CUDNN=ON \

is ON, other configurations you can checkout official document for more information.

Reference:

--

--