How to write python bindings for some submodules
I would like to write a python binding for the submodule saliency
in opencv_contrib. Any instructions or documents on how to do this?
I would like to write a python binding for the submodule saliency
in opencv_contrib. Any instructions or documents on how to do this?
Asked: 2015-01-20 22:57:01 -0600
Seen: 81 times
Last updated: Jan 20 '15
Area of a single pixel object in OpenCV
Weird result while finding angle
cv2.perspectiveTransform() with Python
cv2 bindings incompatible with numpy.dstack function?
Getting single frames from video with python
Line detection and timestamps, video, Python
Different behaviour of OpenCV Python arguments in 32 and 64-bit systems
You do not have to write it yourself, python wrappers are auto generated afaik. They are realised by adding
CV_EXPORT_W
to the functions that you want to push to the python interface. I am sure that @berak can help you out here!there's even a nice tutorial about it.
but the 1st thing i'd try is running the sample code, to see how it works at all. you'll quickly see, that it's not enough to wrap the general saliency interface, but that unfortunately each implementation needs some special helper classes.
also, this thing depends heavily on Algorithm again, and it might be, that the interfaces will change in the future, when(or if) that goes away.
tl,dr; - sometimes there's hidden reasons why something is not wrapped properly.