Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rif/imgdup
Visual similarity image finder and cleaner
https://github.com/rif/imgdup
Last synced: 18 days ago
JSON representation
Visual similarity image finder and cleaner
- Host: GitHub
- URL: https://github.com/rif/imgdup
- Owner: rif
- License: mit
- Created: 2014-05-05T09:00:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-08T07:46:49.000Z (over 9 years ago)
- Last Synced: 2024-10-01T13:22:14.237Z (about 2 months ago)
- Language: Python
- Size: 195 KB
- Stars: 19
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Object-Detections - Imgdup
README
imgdup
======Visual similarity image finder and cleaner (image deduplication tool).
Install
-------```
pip install imgdup
```or clone the repo and run imgdup.py file directly
Usage
-----Should be run in the images folder.
It will create a `duplicates` folder containing similar file pairs indicating which file was kept and which one is gone. You can later review similar files in the `duplicates` folder and decide if you delete or restore each `_GONE_` marked file.
```shell
usage: imgdup.py [-h] [-c CMP] [-s SENSITIVITY] [-i] [-d] [-u]Compare images base on perceptual similarity.
optional arguments:
-h, --help show this help message and exit
-c CMP, --cmp CMP compare images by function and keep higher
(resolution, size [resolution])
-s SENSITIVITY, --sensitivity SENSITIVITY
how similar images must be to be considered duplicates
(0 - very similar, 5 - shomehow similar)
-i, --invert invert the compartison function (keep lower)
-d, --dry_run just print the pairs
-u, --undo put the moved files back
```[Watch example terminal cast here](http://asciinema.org/a/19620)
WARNING
-------Backup the image set before running this script!