How to compile OpenCV without CUDA support

OpenCV can be compiled from source easily on Ubuntu as explained here. By default, if you have CUDA installed on your Ubuntu, OpenCV will compiled with CUDA support enabled. This can increase the c…