15
[Question] Image compare after Getting the Edges in OpenCV
Hi, a newbie with Open Cv and am trying to display similar images so far i have done the following.
**import cv2
import os
import numpy as np
import matplotlib.pyplot as plt
img1 = cv2.imread("1-Flip-flops.jpg",0)
img2 = cv2.imread("29-Leather mules.jpg",0)
edges1 = cv2.Canny(img1, threshold1=30, threshold2=100)
edges2 = cv2.Canny(img2, threshold1=30, threshold2=100)
print(edges1)
plt.imshow(edges1, cmap = "gray")
plt.show()
plt.imshow(edges2, cmap = "gray")
plt.show()**
It shows the edges around the black pic in matplotlib as i plot it.. I was following the tutorial on a website, but it ended with the edges part. Where should i go from here. ?
Thanks and Sorry If Noob Question :(
15