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

后端 未结 4 1933
野趣味
野趣味 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:04

    In OpenCV 3.0.0-dev, you have to compile with the contrib repos and then it's in the bgsegm sub-module. I.e. just call cv2.bgsegm.createBackgroundSubtractorGMG()

提交回复
热议问题