First time here? Check out the FAQ!

Ask Your Question
4

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

asked Feb 26 '13

b_m gravatar image

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Feb 27 '13

Guanta gravatar image

As a quick fix you could maybe generate the Pythonbinding using Boostpython http://www.boost.org/doc/libs/1_53_0/libs/python/doc/.

Preview: (hide)

Comments

you obviously did not read the answer mentioned above

berak gravatar imageberak (Feb 27 '13)edit

I have read it and I didn't mean that he should use boost-python in general but as a quick fix he could use it (of couse not submitting it in the current release). So I don't understand your down-vote here.

Guanta gravatar imageGuanta (Feb 27 '13)edit

could not revert it until there is an answer

berak gravatar imageberak (Feb 27 '13)edit

Question Tools

1 follower

Stats

Asked: Feb 26 '13

Seen: 815 times

Last updated: Feb 27 '13