OpenCV Image Processing — C++ vs C vs Python

后端 未结 4 944
执笔经年
执笔经年 2021-02-01 17:20

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 lik

相关标签:
4条回答
  • 2021-02-01 17:48

    Even if you're very proficient in C or C++, you should use python to speed up your development (I should guess a 4x factor). Performance are really quite the same.

    0 讨论(0)
  • 2021-02-01 17:53

    The Python interface is still being developed whereas the C++ interface (especially with the new Mat class) is quite mature. If you're comfortable in C++, I would highly recommend using it - else, you can start using Python and contribute back any features you think OpenCV needs :)

    0 讨论(0)
  • 2021-02-01 17:58

    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

    0 讨论(0)
  • 2021-02-01 18:04

    I think it depends how proficient you are in C++. The Mat interface does appear more modern than the old IPLImage C interface. The problem I'm having is that most of the examples you'll find on the web, or even here on stackoverflow are for the C interface (e.g. cvCvtColor), not for the C++ interface. So I'm really struggling to port the C examples to C++.

    0 讨论(0)
提交回复
热议问题