https://github.com/magamig/duplicate-images-finder
🏞🌉 Find and Delete Duplicate Images / Photos
https://github.com/magamig/duplicate-images-finder
computer-vision duplicate-images image-recognition lowe sift
Last synced: 5 months ago
JSON representation
🏞🌉 Find and Delete Duplicate Images / Photos
- Host: GitHub
- URL: https://github.com/magamig/duplicate-images-finder
- Owner: magamig
- License: mit
- Created: 2019-10-31T15:02:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-30T23:53:06.000Z (almost 2 years ago)
- Last Synced: 2025-04-07T10:36:25.208Z (about 1 year ago)
- Topics: computer-vision, duplicate-images, image-recognition, lowe, sift
- Language: Python
- Homepage:
- Size: 11.9 MB
- Stars: 84
- Watchers: 2
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 
[](https://travis-ci.com/magamig/duplicate_images_finder)
[](https://codeclimate.com/github/magamig/duplicate_images_finder/maintainability)
[](http://htmlpreview.github.io/?https://github.com/magamig/duplicate_images_finder/blob/master/docs/main.html)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fmagamig%2Fduplicate_images_finder?ref=badge_shield)
Find and delete duplicate images inside a directory.
## Running
```bash
> python main.py -d 'sample_images/'
[DUPLICATE FOUND] sample_images/road.jpg sample_images/road_duplicate.jpg
[DELETED] sample_images/road_duplicate.jpg
```
```bash
> python main.py -h
usage: main.py [-h] [-d] [-s] [--min_matches MIN_MATCHES]
[--features_distance FEATURES_DISTANCE]
directory
positional arguments:
directory directory with the images
optional arguments:
-h, --help show this help message and exit
-d, --delete delete the duplicate images found with smaller res
-s, --silent quiet execution without logging
--min_matches MIN_MATCHES
minimum number of matching features to accept the
images as being similar
--features_distance FEATURES_DISTANCE
[0,1] - higher number results in more matching
features but with less accuracy
```
##### Similar / Duplicate Images

##### Different Images

## Requirements
Before running this project you need to install its requirements.
```bash
> pip install -r requirements.txt
```
## Built With
* [Python](https://docs.python.org/3/) - Programming language
* [OpenCV](https://docs.opencv.org/) - Computer vision library
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
## References
* D. G. Lowe, "Distinctive image features from scale-invariant keypoints", International Journal of Computer Vision, 60, 2 (2004), pp. 91-110. [[PDF](https://www.cs.ubc.ca/~lowe/papers/ijcv04.pdf)]
* M. Muja and D. G. Lowe, "Scalable Nearest Neighbor Algorithms for High Dimensional Data", IEEE Transactions on Pattern Analysis and Machine Intelligence 36, 11 (2014), pp. 2227-2240. [[PDF](https://www.cs.ubc.ca/research/flann/uploads/FLANN/flann_pami2014.pdf)]