Skip to content

Instantly share code, notes, and snippets.

@savolla
Created May 30, 2017 16:26
Show Gist options
  • Save savolla/ae1dc65b8bdab9198522ace53cd186de to your computer and use it in GitHub Desktop.
Save savolla/ae1dc65b8bdab9198522ace53cd186de to your computer and use it in GitHub Desktop.
import cv2
import numpy as np
org = cv2.imread("glassorg.jpg")
line = cv2.imread("glassorg1.jpg")
diff = cv2.subtract(line, org)
result = not np.any(diff)
if result is True:
print("resimler aynı")
else:
cv2.imwrite("result.jpg", diff)
print("resimler farklı")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment