Guest User

Untitled

a guest
Sep 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. for i in image_path_list:
  2. image2 = cv2.imread(i)
  3. image2 = cv2.resize(image2,(360,480))
  4. for j in image_path_list:
  5. if i!=j:
  6. image1=cv2.imread(j)
  7. image1=cv2.resize(image1, (360,480))
  8. difference = cv2.subtract(image1, image2)
  9.  
  10. result = not np.any(difference) #if difference is all zeros it will return False
  11.  
  12. if result is True:
  13.  
  14. print(i)
  15. else:
  16.  
  17. continue
  18.  
  19. https://github.com/philipbl/duplicate-images
Add Comment
Please, Sign In to add comment