Detecting corners
Corner detection is a standard technique in computer vision. Scikits-image (a package specialized in image processing) offers a Harris corner detector, which is great since corner detection is pretty complicated. Obviously, we could do it ourselves from scratch, but that would violate the cardinal rule of not reinventing the wheel. We will load a sample image from scikits-learn. This is not absolutely necessary for this example. You can use any other image instead.
Note
For more information on corner detection, please refer to https://en.wikipedia.org/wiki/Corner_detection.
You might need to install jpeglib on your system to be able to load the scikits-learn image, which is a JPEG file. If you are on Windows, use the installer; otherwise, download the distribution, unpack it, and build from the top folder with the following command line:
./configure make sudo make install
To detect corners of an image, perform the following steps:
Load the sample image.
Scikits-learn currently...