5 ms·
Be aware that python opencv uses c++ calls, it's only a wrapper. SciPy or numpy might be better examples.
by joelg236 10y ago
Be aware that python opencv uses c++ calls, it's only a wrapper. SciPy or numpy might be better examples.
- ihnorton 10y ago> SciPy or numpy might be better examples. Python comprises less than 50% of the code in both of those repositories, but they are certainly great for learning the CPython API.
- joshvm 10y agoI was under the impression that Numpy also just calls BLAS underneath? Hence why doing element-wise calls in Numpy is far, far faster than simply doing nested for loops. But I think this is the great strength of Python. It's a glue language. If you need speed, you can always write a wrapper around a C/C++ library.
- dietrichepp 10y agoFunny you should say C/C++, because BLAS is Fortran.
- howeman 10y agoActually, it's mostly assembly (depending on the particular implementation). Lapack is Fortran though.