import cv2
fgbg = cv2.createBackgroundSubtractorMOG()
fgbg1 = cv2.createBackgroundSubtractorGMG()
AttributeError: 'module' object has no attribute 'createBackgroundSubtractorMOG()'
AttributeError: 'module' object has no attribute 'createBackgroundSubtractorMOG()'
Run Code Online (Sandbox Code Playgroud)
环境:
我该怎么办?
您可能对BackgroundSubtractorMOG2感兴趣,虽然没有记录,但它在opencv 3.0.0-beta中有一个python绑定.
import cv2
fgbg = cv2.createBackgroundSubtractorMOG2(detectShadows=True)
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
6965 次 |
最近记录: |