idealo / imagededup

😎 Finding duplicate images made easy!
https://idealo.github.io/imagededup/
Apache License 2.0
5.1k stars 458 forks source link

Find duplicates across 2 sets of images #170

Closed jmayank23 closed 1 year ago

jmayank23 commented 2 years ago

Is there a way I can check one directory of images with another directory of images for duplicates? i.e. I do not want to check for duplicates within the same directory

knshkp commented 2 years ago

Yeah You can check one by one by secifying a directory

tanujjain commented 1 year ago

You could generate encodings for each directory using encode_images method, then concatenate the resulting encoding dictionaries, then pass this dictionary to theencoding_map parameter of the find_duplicates method. Of course, this would find duplicates within the same directory too, but you could easily filter it out from the result.