Unverified Commit 2370c8a0 authored by Alexander Alekhin's avatar Alexander Alekhin Committed by GitHub

Merge pull request #10429 from wxzs5:fix-documentation

parents 2b3c140f 0a4b1b8d
...@@ -147,7 +147,7 @@ Finally we check the descriptor size and change it to 128 if it is only 64-dim. ...@@ -147,7 +147,7 @@ Finally we check the descriptor size and change it to 128 if it is only 64-dim.
False False
# So we make it to True to get 128-dim descriptors. # So we make it to True to get 128-dim descriptors.
>>> surf.extended = True >>> surf.setExtended(True)
>>> kp, des = surf.detectAndCompute(img,None) >>> kp, des = surf.detectAndCompute(img,None)
>>> print( surf.descriptorSize() ) >>> print( surf.descriptorSize() )
128 128
......
...@@ -48,7 +48,7 @@ import cv2 as cv ...@@ -48,7 +48,7 @@ import cv2 as cv
cap = cv.VideoCapture('vtest.avi') cap = cv.VideoCapture('vtest.avi')
fgbg = cv.createBackgroundSubtractorMOG() fgbg = cv.bgsegm.createBackgroundSubtractorMOG()
while(1): while(1):
ret, frame = cap.read() ret, frame = cap.read()
...@@ -125,7 +125,7 @@ import cv2 as cv ...@@ -125,7 +125,7 @@ import cv2 as cv
cap = cv.VideoCapture('vtest.avi') cap = cv.VideoCapture('vtest.avi')
kernel = cv.getStructuringElement(cv.MORPH_ELLIPSE,(3,3)) kernel = cv.getStructuringElement(cv.MORPH_ELLIPSE,(3,3))
fgbg = cv.createBackgroundSubtractorGMG() fgbg = cv.bgsegm.createBackgroundSubtractorGMG()
while(1): while(1):
ret, frame = cap.read() ret, frame = cap.read()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment