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
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
Related Q & A:
- What are the common usage of python programming language?Best solution by quora.com
- Which is the best programming language?Best solution by Yahoo! Answers
- Which is better career wise for a computer engineering graduate?Best solution by Quora
- Which would be a better career Electrical or computer engineer?Best solution by Yahoo! Answers
- What programming language would be appropriate for better job opportunities?Best solution by quora.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.