How can we use opencv cuda module from python? [closed]

asked 2017-04-17 01:13:13 -0600

DDM gravatar image

Hi, I need to use the cv::cuda::HOG from python to get the HOG descriptor from an image. I tried using Python.Boost for creating a wrapper for a C++ function which gets the hog descriptor using opencv cuda module and then importing this function in python. However, I get the following error:ImportError: ../build/lib.linux-x86_64-2.7/pyBoostHOG.so: undefined symbol: _ZN2cv4cuda6Stream4NullEv.

Is there any other way to do this?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by DDM
close date 2017-04-20 00:02:03.017353

Comments

Well I have solved this problem. A undefined symbol in .so file error refers to absence of required libraries . The symbol can be used to decode which library needs to be included.

DDM gravatar imageDDM ( 2017-04-20 00:01:42 -0600 )edit

I find correct file to include and i was trying to include it before comping my C++ class. But I have another problem:

.../include/opencv2/core/cuda.hpp:317: Error: Syntax error in input(1).

Where do you include these file and how you solve this particular error (which wrapper, where do you include these file form opencv?).

Thanks in advance.

bartpr gravatar imagebartpr ( 2017-05-10 13:11:11 -0600 )edit