Performance comparison of OpenCV applications with and without CUDA support

The performance of image processing algorithms can be measured in terms of the time it takes to process a single image. When algorithms work on video, performance is measured in terms of frames per second, which indicates the number of frames it can process in a second. When the algorithm can process more than 30 frames per second, it can be considered to work in real time. We can also measure the performance of our algorithms implemented in OpenCV, which will be discussed in this section.

As we discussed earlier, when OpenCV is built with CUDA compatibility, it can increase the performance of algorithms drastically. OpenCV functions in the CUDA module are optimized ...

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.