MATEC Web of Conferences

Comparative performance analysis of OpenCV and ArrayFire for computer vision systems

Patrick Malatjie, Teboho Sekopa

Key points

From the paper's conclusion
  • Overall, GPU acceleration provided performance improvements ranging from 6x to 90x depending on the operation, with Gaussian filtering benefiting most from parallel computation.

Abstract

In this paper, we evaluate two Python computer vision libraries for the construction of computer vision pipelines. The execution speeds of the computer vision function, and neural network containers are compared across different image sizes, bit depths, CPUs (Central Processing Unit), and GPUs (Graphics Processing Unit). These estimates are further used to predict execution speeds of image processing pipelines. Finally, a recommendation for the usage of each library with regards to available hardware, image sizes and image pipelines are given. Quantitative results demonstrate that the ArrayFire OpenCL backend significantly outperforms the OpenCV CPU baseline. Specifically, ArrayFire achieved a maximum speedup of approximately 90× in Gaussian filtering, with Sobel and median filtering showing speedups of approximately 6x and 15x, respectively. Overall, GPU acceleration provided performance improvements ranging from 6x to 90x depending on the operation, with Gaussian filtering benefiting most from parallel computation. While all operations showed substantial acceleration, Sobel and median filtering exhibited higher execution variability due to memory transfer overheads and complex access patterns. These empirical metrics are utilised to predict execution speeds for broader image processing pipelines. Finally, we provide hardware-specific recommendations for deploying OpenCV and ArrayFire based on available computational resources, image sizes, and pipeline latency requirements.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Comparative performance analysis of OpenCV and ArrayFire for computer vision systems — Science Skim