Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What the hell is up with BackgroundSubtractorMOG, MOG2, KNN, etc.?

There is some serious inconsistencies between the API and documentation for the Python bindings. In the online documentation (which BTW still says OpenCV 2.4.11):

link text

Shows that there is a python implementation for cv2.createBackgroundSubtractorMOG(), but when viewing the actual API in python there not only is no option for MOG, there appears to be an option for MOG2 and KNN. The MOG2 works good, but the documentation doesn't correspond to the actual parameters in the python version, there is also NO mention of cv2.createBackgroundSubtractorKNN() anywhere in the docs. Sorry if I'm nitpicking, but these are extremely important algortihms and it would be great to have the proper information on them so as to use and implement them properly. Please lend me your suggestions. Thanks!