Created
May 30, 2017 16:26
-
-
Save savolla/ae1dc65b8bdab9198522ace53cd186de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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