SimilarImages/README.md

32 lines
1.2 KiB
Markdown
Raw Normal View History

2022-10-23 18:01:46 +02:00
## Find Duplicate and Similar Images
2022-10-24 08:50:24 +02:00
Finds duplicates and similar images in a defined path. Set the image to search for similar images or the path for finding duplicates in main.py.
hash_size of 8 means, the image will be resized to an 8x8 matrix. So, if you want to improve performance, you can try to increase the hash_size.
2022-10-23 18:01:46 +02:00
## Install Requirements
pip install -r requirements.txt
## Usage
python3 main.py
## Available Functions
- find_duplicates (Finding and Deleting Duplicates)
2022-10-23 19:42:05 +02:00
- options:
2022-10-23 19:42:31 +02:00
- verbose (True-default/False) - Show messages (verbose=False automatically deletes duplicates!)
2022-10-28 11:26:02 +02:00
- exportCSV (True/False-default) - exports all possible duplicates into duplicates.csv file
- exportAPI (True-default/False) - exports all possible duplicates to an API (https://git.kmpr.at/kamp/DuplicateAPI)
2022-10-23 18:01:46 +02:00
- find_similar (Finding Similar Images to a corresponding Image)
2023-07-22 09:38:28 +02:00
## Cronjob
With this Cronjob example the script runs every Saturday (starting at 7:35) and finds any duplicates as specified.
<code>35 7 * * Sat /usr/bin/python3 /opt/similarimages/Duplicate-Remover-master/main.py > /dev/null</code>
2022-10-23 18:01:46 +02:00
## Credits
- based on the initial idea of cw-somil
- modifed on PR of chirag-jn