mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 14:06:27 +08:00
Fix functions‘ class attribution error
This commit is contained in:
parent
2e33844f0d
commit
25c17b107e
@ -48,7 +48,7 @@ import cv2 as cv
|
||||
|
||||
cap = cv.VideoCapture('vtest.avi')
|
||||
|
||||
fgbg = cv.createBackgroundSubtractorMOG()
|
||||
fgbg = cv.bgsegm.createBackgroundSubtractorMOG()
|
||||
|
||||
while(1):
|
||||
ret, frame = cap.read()
|
||||
@ -125,7 +125,7 @@ import cv2 as cv
|
||||
cap = cv.VideoCapture('vtest.avi')
|
||||
|
||||
kernel = cv.getStructuringElement(cv.MORPH_ELLIPSE,(3,3))
|
||||
fgbg = cv.createBackgroundSubtractorGMG()
|
||||
fgbg = cv.bgsegm.createBackgroundSubtractorGMG()
|
||||
|
||||
while(1):
|
||||
ret, frame = cap.read()
|
||||
|
Loading…
Reference in New Issue
Block a user