Log in

View Full Version : How do I check if two images with different file size contain the same image?


lansing
11th May 2018, 04:33
I'm uploading images to my server and I don't want to store duplicated images, so I need to check if the image exist before upload. Checking only for file size is not enough since I may have identical images in different file size.

I'm not sure if this is vapoursynth related thing but maybe it can do it?

WolframRhodium
11th May 2018, 07:13
mvf.PlaneCompare()
The distance (mae, mse) between two identical images is zero, mathematically.

lansing
11th May 2018, 18:01
Try searching "duplicate photo finder" or something similar. There are standalone tools and python scripts.

The only script I can find is this one, but it requires MongoDB and I don't use it.
https://github.com/philipbl/duplicate-images