Building libraries from source

If you want to compile OpenCV with CUDA support, follow these steps for installation:

  1. OpenCV with CUDA will require a C compiler and GPU compiler. It will require Microsoft Visual Studio and the latest CUDA installation. The procedure to install them is covered in Chapter 1, Introducing CUDA and Getting Started with CUDA. So before moving ahead, please check that they are installed properly.
  2. Download the source for the latest version of OpenCV by visiting the link:
  3. There are some extra modules that are not included in OpenCV, but they are available in the extra module call opencv_contrib, which can be installed along with OpenCV. The functions available in this module are ...

Get Hands-On GPU-Accelerated Computer Vision with OpenCV and CUDA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.