Home
Chat
This website collects cookies to deliver better user experience
OK
[Question] Image compare after Getting the Edges in OpenCV
[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 :(
22
0
Categories:
Python
Tags:
Opencv
Python
Machinelearning
Computerscience
Related Posts
loading...
loading...
loading...
loading...
loading...
loading...
loading...
loading...
Post Comment
Show Comments
NodeJS vs Python
App Development Practices To Follow For Your Business In 2021
I Don’t Know!
Operating Systems: Introduction
How I Think About JavaScript Types (A Mental Model for Beginners)
Mask or no mask? With Twilio Video, machine learning, and JavaScript
What are the various machine learning usecases for companies/enterprises ?
✨🥞 Rust Visualized: The Stack, the Heap, and Pointers