Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  • with opencv3, you will have to get a BackgroundSubtractorKNN or BackgroundSubtractorMOG2 like this:

    cv2.createBackgroundSubtractorKNN([, history[, dist2Threshold[, detectShadows]]])    
    cv2.createBackgroundSubtractorMOG2([, history[, varThreshold[, detectShadows]]])
    

  • createBackgroundSubtractorGMG and createBackgroundSubtractorMOG were moved to the bgsegm module in opencv_contrib repo:

      cv2.bgsegm.createBackgroundSubtractorGMG([, initializationFrames[, decisionThreshold]]) 
      cv2.bgsegm.createBackgroundSubtractorMOG([, history[, nmixtures[, backgroundRatio[,noiseSigma]]]])