Harris Corner Detector is a corner detection operator that is commonly used in computer vision algorithms to extract corners and infer features of an image.
cv2.cornerHarris(img, blockSize, ksize, k)
The arguments here mean:
- img - Input image, it should be grayscale and float32 type.
- blockSize - It is the size of neighbourhood considered for corner detection
- ksize - Aperture parameter of Sobel derivative used.
- k - Harris detector free parameter in the equation.
- It is simple to compute, and is fast enough.
- Also, it is popular because it is rotation, scale and illumination variation independent.
You can go through this link for understanding the mathematics behind it.