March 2018
Beginner to intermediate
306 pages
9h 54m
English
You need to complete the following steps:
import cv2import numpy as npimport matplotlib.pyplot as plt
img0 = cv2.imread('../data/Lena.png', cv2.IMREAD_GRAYSCALE)img1 = cv2.imread('../data/Lena_rotated.png', cv2.IMREAD_GRAYSCALE)
detector = cv2.ORB_create(100)kps0, fea0 = detector.detectAndCompute(img0, None)kps1, fea1 = detector.detectAndCompute(img1, None)matcher = cv2.BFMatcher_create(cv2.NORM_HAMMING, False)matches = matcher.match(fea0, fea1)
pts0 = np.float32([kps0[m.queryIdx].pt for m in matches]).reshape(-1,2) ...
Read now
Unlock full access