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
- Employing Hybrid Image Processing for Grape Sorting.Sensors (Basel, Switzerland) · 2026
- Convolutional Neural Network Acceleration Techniques Based on FPGA Platforms: Principles, Methods, and ChallengesInformation · 2025
- CARB: A Characterization-Guided Framework for CNN Inference Cost Prediction and Deployment ScreeningarXiv · 2026
- Performance analysis of Convolutional Neural Networks on edge devices for Computer Vision tasksArray · 2026
- Enabling Memory-efficient Im2win Convolution with Multi-precision Support on GPU CUDA and Tensor CoresarXiv · 2026
- Accelerating Data Preprocessing for Efficient Vision Model Inference on Jetson Edge DevicearXiv · 2026