Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use the C++ functions of OpenCV from Python?

I'm using the Python bindings of OpenCV and it's really great. However, there are functions in the C++ version that are missing from the Python bindings, BackgroundSubstractorMOG2 for example. I wonder what would be the easiest way for me to use the BackgroundSubstractorMOG2 or other C++ functions. I know that are existing techniques with SWIG and BOOST, also I found this answer about how the Python binding are generated. It's nice, but it's nowhere near detailed enough for me to follow.

I guess The missing functons will be implemented eventually, but I'm looking to use this one in the meantime. I'd be happy to contribute to the Python bindings if I knew how.