Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

syntax has changed between 2.4 and 3.1. use:

fpbg=cv2.createBackgroundSubtractorMOG2

syntax api has changed between 2.4 and 3.1. use:

fpbg=cv2.createBackgroundSubtractorMOG2

api has changed between 2.4 and 3.1. use:

fpbg=cv2.createBackgroundSubtractorMOG2
fpbg=cv2.createBackgroundSubtractorMOG2()

api has changed between 2.4 and 3.1. use:

fpbg=cv2.createBackgroundSubtractorMOG2()
fpbg=cv2.createBackgroundSubtractorKNN()

and the MOG and GMG versions are in the bgsegm module in opencv_contrib, so that's:

fpbg=cv2.bgsegm.createBackgroundSubtractorMOG()
fpbg=cv2.bgsegm.createBackgroundSubtractorGMG()