Skip to content

FocusThen/Canny-Edge-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Canny Edge Detector

Orginal image

sunflower

we need rgb to gray

gray = cv2.cvtColor(image_copy, cv2.COLOR_RGB2GRAY)

plt.imshow(gray, cmap="gray")

ss1

we need lower and upper for Canny

lower = 120
upper = 240

edges = cv2.Canny(gray, lower, upper)
plt.imshow(edges, cmap="gray")

More details for Canny

ss2

Different wide and tight

wide = cv2.Canny(gray, 30, 100)
tight = cv2.Canny(gray, 180, 240)

f, (ax1, ax2) = plt.subplots(1,2, figsize=(20,10))

ax1.imshow(wide, cmap="gray")
ax1.set_title("Wide")

ax2.imshow(tight, cmap="gray")
ax2.set_title("Tight")

ss3

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages