ImSim: Image Similarity

Jorgen Grahn grahn+nntp at snipabacken.se
Sat Mar 5 13:18:39 EST 2011


On Sat, 2011-03-05, Grigory Javadyan wrote:
> At least you could've tried to make the script more usable by adding
> the possibility to supply command line arguments, instead of editing
> the source every time you want to compare a couple of images.
>
> On Sat, Mar 5, 2011 at 11:23 AM, n00m <n00m at narod.ru> wrote:
>> Let me present my newborn project (in Python) ImSim:
>>
>> http://sourceforge.net/projects/imsim/
>>
>> Its README.txt:
>> ---------------------------------------------------------------------
>> ImSim is a python script for finding the most similar pic(s) to
>> a given one among a set/list/db of your pics.
>> The script is very short and very easy to follow and understand.
>> Its sample output looks like this:
...
>> The *less* numeric value -- the *more similar* this pic is to the
>> tested pic. If this value > 70 almost for sure these pictures are
>> absolutely different (from totally different domains, so to speak).
>>
>> What is "similarity" and how can/could/should it be estimated this
>> point I'm leaving for your consideration/contemplation/arguing etc.

So basically you're saying you won't tell the users what the program
*does*. I don't get that.

Is it better than this?
- scale each image to 100x100
- go black&white in such a way that half the pixels are black
- XOR the images and count the mismatches

That takes care of JPEG quality, scaling and possibly gamma
correction, but not cropping or rotation. I'm sure there are better,
well-known algorithms.

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .  .
\X/     snipabacken.se>   O  o   .



More information about the Python-list mailing list