Happy
Happy

Reputation: 469

OpenCV - IPP, TBB and CUDA in Python bindings

I'm using the Python bindings for OpenCV, which is basically done just by compiling the OpenCV package and placing a .pyd file in my Python distribution.

My question is: If I compile the OpenCV package with Intel IPP, TBB and CUDA , will it affect the Python bindings? And if yes, could I just get the .pyd file from someone who did the compilation (since I'm having some troubles doing this)

Upvotes: 2

Views: 1755

Answers (1)

Abid Rahman K
Abid Rahman K

Reputation: 52646

OpenCV-Python is just a wrapper around underlying C++ code. So if you compile with IPP,TBB, your python code also should make use of it.

But regarding CUDA, OpenCV has separate functions for GPU operations. And those functions don't have Python bindings until now. So you won't be able to access them from Python. ( of course, they are planning to create wrapper for GPU functions also, so in future, you can use it, but not now).

Now if you have made all possible optimizations and still thinks code is slow, you will have to use other methods like cython, or write your codes on C and call it from C etc.

Upvotes: 2

Related Questions