About the function used:
Syntax: cv2.cornerHarris (src, dest, blockSize, kSize, freeParameter, borderType)
Parameters:
src - Input Image (Single-channel, 8-bit or floating-point)
dest - Image to store the Harris detector responses. Size is same as source image
blockSize - Neighborhood size (for each pixel value blockSize * blockSize neighborhood is considered)
ksize - Aperture parameter for the Sobel () operator
freeParameter - Harris detector free parameter
borderType - Pixel extrapolation method (the extrapolation mode used returns the coordinate of the pixel corresponding to the specified extrapolated pixel)
Below is the Python implementation:
|
Input data :

Exit:
