Finding duplicated photo

Billy Mays noway at nohow.com
Fri Jul 8 08:37:58 EDT 2011


On 07/08/2011 07:29 AM, TheSaint wrote:
> Hello,
>
> I came across the problem that Gwenview moves the photo from the camera
> memory by renaming them, but later I forgot which where moved.
> Then I tought about a small script in python, but I stumbled upon my
> ignorance on the way to do that.
>
> PIL can find similar pictures. I was thinking to reduce the foto into gray
> scale and resize them to same size, what algorithm should take place?
> Is PIL able to compare 2 images?
>

I recently wrote a program after reading an article ( 
http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html 
) using the DCT method he proposes.  It worked surprisingly well even 
with just the 64bit hash it produces.

--
Bill



More information about the Python-list mailing list