Find similar images using python

Diez B. Roggisch deets at
Wed Mar 29 16:41:47 CEST 2006

sudharsh at wrote:

> I dont get it..cant the matching take place efficiently with PIL, only
> that you need to have a condition i.e if the mismatch exceeds a certain
> threshold, they are not similar,
> Check the above link, only diiference is that instead of files as in ur
> case, the code here compares two pixels of consecutive frames for
> changes..

No, the difference is fundamental: two consecutive frames of a still-mounted
camera are - except noise and changing lightning conditions - the same.
detecting a difference in case of motion is easy. 

But similarity between two images is a totally different beast. I would say
that an image of my grandma with me on her knee and another one with my
brother are very similar. But your approach would certainly fail to say


More information about the Python-list mailing list