which is better for opencv, C or Python?

asked 2016-10-23 23:32:51 -0600

arbj gravatar image

Hi,

I would like to use opencv for a machine vision project, I need to know which tool is best for using opencv, python or C ?

I have some experience in both, however I need to know if applications using opencv can be ported to Linux, Windows or OS X

I will develop on OS X, but will target Windows and Linux mostly...In this regard which option is better C or Python

thanks a

edit retag flag offensive close merge delete

Comments

well, it is c++ vs.python, the c option is no more valid (they stopped maintaining that api in 2010 already)

berak gravatar imageberak ( 2016-10-23 23:40:41 -0600 )edit
2

OpenCV is cross-platform, so in my opinion it is just a matter of which language are you more comfortable with or if you need a specific API or library.

OpenCV is coded in C++ with wrappers for Java and Python, so I would go for C++ personally.

Eduardo gravatar imageEduardo ( 2016-10-24 04:42:36 -0600 )edit

I agree with @Eduardo, if you want the latest stable functionality and all possible bugfixes, then go for C++. If you want the ease of a scripting language but with the issue of some functions not yet being wrapped, then go for Python.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-10-24 06:22:52 -0600 )edit

of course use Python! for now, grogrammer's time is precious more then running performance. for C u need learn all OS platform SDK; base python, only python self...

Zoom.Quiet gravatar imageZoom.Quiet ( 2016-10-30 00:54:38 -0600 )edit