Get background model from BackgroundSubtractorMOG2 in python

前端 未结 3 1204
猫巷女王i
猫巷女王i 2020-12-29 16:58

I need to get the background model of a Mixture of Gaussian with opencv. I know that there is a method called getBackgroundImage in C++ I searched if it is possible to get i

3条回答
  •  心在旅途
    2020-12-29 17:23

    opencv 3.0

    bgd=dict(history=20,nmixtures=20,backgroundRatio=0.5,noiseSigma=0)
    fgbg=cv2.bgsegm.createBackgroundSubtractorMOG(**bgd)
    

提交回复
热议问题