Skip to content

Commit b3cd2a8

Browse files
authored
1 parent 4353285 commit b3cd2a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/py_tutorials/py_feature2d/py_matcher/py_matcher.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ This time, we will use ``BFMatcher.knnMatch()`` to get k best matches. In this e
100100
img2 = cv2.imread('box_in_scene.png',0) # trainImage
101101

102102
# Initiate SIFT detector
103-
sift = cv2.SIFT()
103+
sift = cv2.SIFT_create()
104104

105105
# find the keypoints and descriptors with SIFT
106106
kp1, des1 = sift.detectAndCompute(img1,None)
@@ -159,7 +159,7 @@ With these informations, we are good to go.
159159
img2 = cv2.imread('box_in_scene.png',0) # trainImage
160160

161161
# Initiate SIFT detector
162-
sift = cv2.SIFT()
162+
sift = cv2.SIFT_create()
163163

164164
# find the keypoints and descriptors with SIFT
165165
kp1, des1 = sift.detectAndCompute(img1,None)

0 commit comments

Comments
 (0)