Finding duplicated photo
davea at ieee.org
Fri Jul 8 12:13:43 EDT 2011
On 01/-10/-28163 02:59 PM, TheSaint wrote:
> 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?
If your real problem is identifying a renamed file amongst thousands of
others, why not just compare the metadata? it'll be much faster.
For example, if you only have one camera, the timestamp stored in the
EXIF data would be pretty close, Some cameras also store their "shutter
release number" in the metadata, which would be even better.
One concern is whether Glenview or any other of your utilities discard
the metadata. That would be a big mistake.
Also, if Gwenview has no other features you're counting on, perhaps you
should write your own "move the files from camera to computer" utility.
that's what I did, and it renames and reorganises the files as it does,
according to my conventions, not someone else's. One reason for the
renaming is that my cameras only use 4 digit numbers, and these recycle
every 10000 images.
More information about the Python-list