Skip to content

Instantly share code, notes, and snippets.

@saurabhpal97
Created March 23, 2019 09:46
Show Gist options
  • Save saurabhpal97/279c3849b729e7f67c5cd57d54ace6fe to your computer and use it in GitHub Desktop.
Save saurabhpal97/279c3849b729e7f67c5cd57d54ace6fe to your computer and use it in GitHub Desktop.
#import the required libraries
import numpy as np
import cv2
import matplotlib.pyplot as plt
%matplotlib inline
#read the image
image = cv2.imread('coins.jpg')
#calculate the edges using Canny edge algorithm
edges = cv2.Canny(image,100,200)
#plot the edges
plt.imshow(edges)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment