Skip to content

Commit 76da19d

Browse files
committed
Merge pull request opencv#5148 from StevenPuttemans:fix_4237
2 parents ca5e07d + be89b05 commit 76da19d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/py_tutorials/py_feature2d/py_matcher/py_matcher.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ Here, we will see a simple example on how to match features between two images.
4646
a queryImage and a trainImage. We will try to find the queryImage in trainImage using feature
4747
matching. ( The images are /samples/c/box.png and /samples/c/box_in_scene.png)
4848

49-
We are using SIFT descriptors to match features. So let's start with loading images, finding
49+
We are using ORB descriptors to match features. So let's start with loading images, finding
5050
descriptors etc.
5151
@code{.py}
5252
import numpy as np
5353
import cv2
54-
from matplotlib import pyplot as plt
54+
import matplotlib.pyplot as plt
5555

5656
img1 = cv2.imread('box.png',0) # queryImage
5757
img2 = cv2.imread('box_in_scene.png',0) # trainImage
5858

59-
# Initiate SIFT detector
60-
orb = cv2.ORB()
59+
# Initiate ORB detector
60+
orb = cv2.ORB_create()
6161

62-
# find the keypoints and descriptors with SIFT
62+
# find the keypoints and descriptors with ORB
6363
kp1, des1 = orb.detectAndCompute(img1,None)
6464
kp2, des2 = orb.detectAndCompute(img2,None)
6565
@endcode

0 commit comments

Comments
 (0)