Model Pipeline - Corner detection (Harris)
This pipeline detects corners in images using the Harris corner detection method. It finds points where the image brightness changes sharply in multiple directions, which often correspond to corners.
Jump into concepts and practice - no test required
This pipeline detects corners in images using the Harris corner detection method. It finds points where the image brightness changes sharply in multiple directions, which often correspond to corners.
No training loss curve because this is a non-learning algorithm
| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | N/A | N/A | Harris corner detection is a classical algorithm, no training involved |
corners?
import cv2
import numpy as np
img = cv2.imread('image.jpg', 0)
corners = cv2.cornerHarris(img, 2, 3, 0.04)
print(type(corners))import cv2
import numpy as np
img = cv2.imread('image.jpg', 0)
corners = cv2.cornerHarris(img, 2, 3, 0.04)
corners = cv2.dilate(corners, None)
img[corners > 0.01 * corners.max()] = 255
cv2.imshow('Corners', img)
cv2.waitKey(0)
cv2.destroyAllWindows()