Skip to content

Commit 2370c8a

Browse files
authored
Merge pull request opencv#10429 from wxzs5:fix-documentation
2 parents 2b3c140 + 0a4b1b8 commit 2370c8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/py_tutorials/py_feature2d/py_surf_intro/py_surf_intro.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Finally we check the descriptor size and change it to 128 if it is only 64-dim.
147147
False
148148

149149
# So we make it to True to get 128-dim descriptors.
150-
>>> surf.extended = True
150+
>>> surf.setExtended(True)
151151
>>> kp, des = surf.detectAndCompute(img,None)
152152
>>> print( surf.descriptorSize() )
153153
128

doc/py_tutorials/py_video/py_bg_subtraction/py_bg_subtraction.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import cv2 as cv
4848

4949
cap = cv.VideoCapture('vtest.avi')
5050

51-
fgbg = cv.createBackgroundSubtractorMOG()
51+
fgbg = cv.bgsegm.createBackgroundSubtractorMOG()
5252

5353
while(1):
5454
ret, frame = cap.read()
@@ -125,7 +125,7 @@ import cv2 as cv
125125
cap = cv.VideoCapture('vtest.avi')
126126

127127
kernel = cv.getStructuringElement(cv.MORPH_ELLIPSE,(3,3))
128-
fgbg = cv.createBackgroundSubtractorGMG()
128+
fgbg = cv.bgsegm.createBackgroundSubtractorGMG()
129129

130130
while(1):
131131
ret, frame = cap.read()

0 commit comments

Comments
 (0)