Corner detection (http://en.wikipedia.org/wiki/Corner_detection) is a standard technique in computer vision. scikit-image 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.
You might need to install jpeglib
on your system to be able to load the scikit-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 commands:
$ ./configure $ make $ sudo make install
We will load a sample image from scikit-learn. This is not absolutely necessary for this example; you can use any other image instead:
scikit-learn currently has two sample JPEG images in a dataset structure. Look at the first image only:
dataset = load_sample_images() img = dataset.images[0]
Since the first edition...