Ask Your Question

Revision history [back]

Here is message about it on my blog. It is in Russian, but i believe, that list of command prompts is enough to understand how to generate Python/Java bindings. Also any automatic translation tool helps you to read the whole text.

I summary: There is some python scripts in OpenCV build system that parses header files, find special markers and generate bindings for marked functions automatically. Article was written for Java, but it is not the problem. Python bindings are generated in the same way using the same header parser. If you want to add some functions to Python/Java bindings you need to change the export macro in function definition.

CV_EXPORTSPublic symbol, not for bindings
CV_EXPORTS_WPublic symbol for bindings
CV_WRAPPublic class method for bindings. Class must be marked as CV_EXPORTS_W