Michael Stephens = Norman Bates?!?

Following on from searching for books by the colour of the cover, it would be just plain rude if I didn’t have a stab at ripping off retrievr at the same time!

Once Iman gets back, I’m going to grill him mercilessly about the best way to analyse and match images. In the meantime, here’s my first stab at searching…

Using ImageMagick, I resized the book covers to 8×8 pixels and then stored the hex colour value of each of the 64 pixels in a database table.

For example, Nielsen’s “Designing Web Usability” changes from…

…to something like this (I’ve added the black lines)…

You can then give it an image like this one to search for…

…then cross your fingers and see what pops out the other end…

imagetest1

The search works by comparing the hex colours of the 8×8 version of the search image with the corresponding pixels of the book covers. Each book cover then gets ranked by how well it matches the search image.

The only catch is that it currently takes about over 30 seconds to complete the search, hence the need to get Iman on the case.

Anyway, I’m sure what you really want to know is what the lowdown on Michael Stephens is — here’s what came out the other end when I gave it a well known image of Mr Stephens…

Michael Stephens / Norman Bates

Just for fun, here’s a few more searches…

imagetest2

imagetest3

imagetest6

imagetest7

imagetest5

imagetest4