Is Python OpenCV slower than its C++ version
The paper presents the comparison of the execution time of applications with regard to the programming language in which they were implemented.C++ and Python languages are considered.The selection of the programming language may have a significant impact on the overall performance of the application.The presented research applies to the OpenCV programming library which is a commonly used library in the field of image processing and computer vision.The paper presents experiments with Feature2D, Video I/O and highgui modules included in this library.In general it seems that programs written in C++ should be faster because it is a more low level language than Python.However surprisingly our research showed that in many cases using Python functions of OpenCV leads to the development of faster applications.The difference was particularly significant in case of the Feature2D module.In case of creating GUI it is negligible.
Authors
- Adam L. Kaczmarek (ORCID: https://orcid.org/0000-0002-2417-7797)
- Kacper Bieryło
- Jan Gabryołek
- Jakub Macioch
Institutions
- Gdańsk University of Technology (PL)
Publication Details
- Journal
- Computer Science Research Notes
- Published
- 2025-01-01
- DOI
- https://doi.org/10.24132/csrn.2025-36
- Primary Topic
- Viral Infections and Outbreaks Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00