Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCV Image Processing -- C++ vs C vs Python

Tags:

c++

python

c

opencv

I was thinking of trying OpenCV for a project and noticed that it had C, C++ and Python.

I am trying to figure out whether I should use C++, C or Python -- and would like to use whatever has the best OpenCV support.

Just from looking at the index page for the various documentation it looks like the C++ bindings might have more features than the others? Is this true?

If C++ has more bindings, it seems that would be a more obvious choice for me, but I was just curious if it really has more features, etc than the others?

Thanks!

like image 666
Hortitude Avatar asked Feb 17 '10 04:02

Hortitude


People also ask

Is OpenCV in C faster than Python?

All google results for openCV state the same: that python will only be slightly slower. But not once have I seen any profiling on that. So I decided to do some and discovered: Python is significantly slower than C++ with opencv, even for trivial programs.

Is C good for image processing?

C or C++ C or C++ language have been used for image processing because it contains native libraries such as EmguCV, OpenGL and OpenCV have built-in intelligent feature, mainly used for image processing.

Can I use C for OpenCV?

OpenCV is a popular Computer Vision library to develop applications built using C++ and C. It has several uses like Object Detection and Video Processing. Computer Vision overlaps with fields like Image Processing, Photogrammetry, and Pattern Recognition. A popular wrapper Emgu CV is used to run OpenCV using C#.

Is OpenCV written in C or C++?

OpenCV is written in C++ and its primary interface is in C++, but it still retains a less comprehensive though extensive older C interface. All of the new developments and algorithms appear in the C++ interface. There are bindings in Python, Java and MATLAB/OCTAVE.


1 Answers

Actually Python binding was finished starting with release 2.2. So i would go with python if i were you, because the performance will be almost the same anyway as you are using c libraries in both cases. However python will get you there faster, safely and you will spend more time on your algorithm rather than getting things to build and run not mentioning memory management hassles

like image 127
Saad Avatar answered Oct 23 '22 19:10

Saad