How to write python bindings for some submodules

asked 2015-01-20 22:57:01 -0600

I would like to write a python binding for the submodule saliency in opencv_contrib. Any instructions or documents on how to do this?

edit retag flag offensive close merge delete

Comments

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!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-21 04:35:18 -0600 )edit
1

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.

berak gravatar imageberak ( 2015-01-21 07:49:40 -0600 )edit