Installation of OpenCV with CUDA support on Linux

This section covers the installation steps for OpenCV with CUDA support on a Linux operating system. The steps are tested on Ubuntu 16.04, but they should work on any Unix distribution:

  1. OpenCV with CUDA will require the latest CUDA installation. The procedure to install it is covered in Chapter 1, Introducing CUDA and Getting Started with CUDA. So before moving ahead, please check that it is installed properly. You can check the installation of the CUDA toolkit and supporting Nvidia device driver by executing the nvidia-smi command. You should see output similar to the following if your installation is working correctly:
  1. Download the source for the latest version of OpenCV by visiting ...

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.