Reputation: 703
What technique/library is used for Python binding in OpenCV2.0?
I am aware there there are a number of libraries for C++/Python binding and that previous versions of OpenCV were using SWING library.
I am testing Python in Python Tools for Visual Studio which has code completition (intellisense) built in. However, for current OpenCV Python bindings it displays only function names in interactive window. In editor, it does not even display the function names.
Is it possible to have intellisense working on parameter level for C++ Python bindings?
Upvotes: 0
Views: 1986
Reputation: 52646
What technique/library is used for Python binding in OpenCV2.0?
Vadim Pisarevsky, one of the core developers of OpenCV, has given a brief answer for this question here: How Python API is generated?. He says:
We do not use SWIG or any other standard wrapper generation tool. We did not find such tools that would produce satisfying results.
Instead, we use our own purely Python-based solution for parsing OpenCV headers
The parser is at opencv/modules/python/src2/hdr_parser.py
After all the API is extracted, we use some more python code (opencv/modules/python/src2/gen2.py) to produce Python wrappers.
Upvotes: 3