Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
76da19d5
Commit
76da19d5
authored
Aug 19, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5148 from StevenPuttemans:fix_4237
parents
ca5e07d3
be89b050
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
py_matcher.markdown
doc/py_tutorials/py_feature2d/py_matcher/py_matcher.markdown
+5
-5
No files found.
doc/py_tutorials/py_feature2d/py_matcher/py_matcher.markdown
View file @
76da19d5
...
...
@@ -46,20 +46,20 @@ Here, we will see a simple example on how to match features between two images.
a queryImage and a trainImage. We will try to find the queryImage in trainImage using feature
matching. ( The images are /samples/c/box.png and /samples/c/box_in_scene.png)
We are using
SIFT
descriptors to match features. So let's start with loading images, finding
We are using
ORB
descriptors to match features. So let's start with loading images, finding
descriptors etc.
@code{.py}
import numpy as np
import cv2
from matplotlib import
pyplot as plt
import matplotlib.
pyplot as plt
img1 = cv2.imread('box.png',0) # queryImage
img2 = cv2.imread('box_in_scene.png',0) # trainImage
# Initiate
SIFT
detector
orb = cv2.ORB()
# Initiate
ORB
detector
orb = cv2.ORB
_create
()
# find the keypoints and descriptors with
SIFT
# find the keypoints and descriptors with
ORB
kp1, des1 = orb.detectAndCompute(img1,None)
kp2, des2 = orb.detectAndCompute(img2,None)
@endcode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment