Harris detects corners by analyzing local gradient variations in all directions.
import cv2 import numpy as np def harris_corners(img): gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) gray = np.float32(gray) dst = cv2.cornerHarris(gray,2,3,0.04) return dst← Back to Gallery