March 2018
Beginner to intermediate
306 pages
9h 54m
English
You need to complete the following steps:
import cv2import matplotlib.pyplot as plt
img = cv2.imread('../data/Lena.png', cv2.IMREAD_GRAYSCALE)
corners = cv2.goodFeaturesToTrack(img, 100, 0.05, 10)
for c in corners: x, y = c[0] cv2.circle(img, (x, y), 5, 255, -1)plt.figure(figsize=(10, 10))plt.imshow(img, cmap='gray')plt.tight_layout()plt.show()