What can you do with an AA in Computer Programming or Computer Applications?

Which programming language is better to code in for computer vision: Python or C++ for CV applications?

  • I know C++ is faster than python, but does this solely makes it better for CV applications?

  • Answer:

    If you want your CV application super fast and super smooth you will probably have to go with C++. But if you want a rapid prototype of your CV application, Python is the way to go, just like most the projects you might undertake. In C++, as you may know, you have to manage a lot of low level stuff, which will give you a hard time coding. The problem with Python is that it's not viable to use Python datatypes for real time image processing. You can use native type wrappers, which will give you a performance edge in Python. I doubt without any C-wrapping you can pull a smooth real time CV application in Python. Assuming you are using OpenCV if you can manage to write your code using the full OpenCV and Ctypes you will probably get comparable performance in Python and C++. Most of the OpenCV API is basically a wrapper for C code.

Arijit Dasgupta at Quora Visit the source

Was this solution helpful to you?

Other answers

Of course the answer is use both. C(++) can be easily wrapped in Python. This is the basis of most modern computer vision libraries in Python such as http://scikit-image.org/ or my own http://packages.python.org/mahotas/, both of which are based on numpy (which should definitely be the basis of any Python-based computer vision code). For many applications, the primitives in these projects will be enough and you just need to add application logic code. Otherwise, wrapping any extra algorithms in Python is the way to go.

Luis Pedro Coelho

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.