Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in image_path_list:
- image2 = cv2.imread(i)
- image2 = cv2.resize(image2,(360,480))
- for j in image_path_list:
- if i!=j:
- image1=cv2.imread(j)
- image1=cv2.resize(image1, (360,480))
- difference = cv2.subtract(image1, image2)
- result = not np.any(difference) #if difference is all zeros it will return False
- if result is True:
- print(i)
- else:
- continue
- https://github.com/philipbl/duplicate-images
Add Comment
Please, Sign In to add comment