OpenCV speed

wujolynb report abuse

Hello guys I’m going to write an app using OpenCV and I wonder if there is any difference in speed between the Python and C++ OpenCV versions? I heard that Python is much slower. But I know Python much better than C++.


Kan13 report abuse

You're right, Python itself is much slower than C++. But OpenCV is written in C++, and the Python cv2 library only uses the API to precompiled code. So there will be no significant difference in speed. However, problems begin when you use a lot of handwritten Python code.

ULiXhan report abuse

There is also the problem that OpenCV in Python uses memory a little differently than in C++. Therefore, if you want to create an efficient app in Python you should look deeply on how to do it the right way. It may be easier to use C++ than to get a good idea of what you are doing with Python if you are very interested in speed.

Add Answer

Need support?

Just drop us an email to ... Show more