Hello try these links. 
https://www.pyimagesearch.com/2020/04/20/detect-and-remove-duplicate-images-from-a-dataset-for-deep-learning/
https://medium.com/@urvisoni/removing-duplicate-images-through-python-23c5fdc7479e 
https://blog.iconfinder.com/detecting-duplicate-images-using-python-cb240b05a3b6
https://stackoverflow.com/questions/3383892/is-it-possible-to-detect-duplicate-image-files
https://www.youtube.com/watch?v=AIyJSGmkFXk
https://www.pyimagesearch.com/2019/08/26/building-an-image-hashing-search-engine-with-vp-trees-and-opencv/
https://www.pyimagesearch.com/2019/08/26/building-an-image-hashing-search-engine-with-vp-trees-and-opencv/
https://medium.com/datadriveninvestor/object-detection-with-raspberry-pi-and-python-bc6b3a1d4972
https://pypi.org/project/imagecleaner/