python-opencv AttributeError: 'module' object has no attribute 'createBackgroundSubtractorGMG'

后端 未结 4 1948
野趣味
野趣味 2020-12-29 12:43

I am trying to follow the tutorial given in: https://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_video/py_bg_subtraction/py_bg_subtraction.html

4条回答
  •  [愿得一人]
    2020-12-29 13:28

    cv2.bgsegm.createBackgroundSubtractorGMG()
    cv2.createBackgroundSubtractorMOG2()
    cv2.bgsegm.createBackgroundSubtractorMOG(),
    

    **this worked for me **

提交回复
热议问题