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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Is Python OpenCV slower than its C++ version

Adam L. Kaczmarek, Kacper Bieryło, Jan Gabryołek, Jakub Macioch
Computer Science Research Notes
Viral Infections and Outbreaks Research
article

Is Python OpenCV slower than its C++ version

Adam L. Kaczmarek, Kacper Bieryło, Jan Gabryołek, Jakub Macioch
article en

Abstract

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.

Computer Science Research Notes
Gdańsk University of Technology (PL)
Openalex Percentile: Top 77%
Viral Infections and Outbreaks Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Is Python OpenCV slower than its C++ version — Adam L. Kaczmarek, Kacper Bieryło, et al. · Computer Science Research Notes (2025) | TGRS Research Map | TGRS