Skip to content

Instantly share code, notes, and snippets.

@Mehdi-Amine
Created November 5, 2021 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mehdi-Amine/63cbaf9f0f38bf0fbfb82b5ec9763e86 to your computer and use it in GitHub Desktop.
Save Mehdi-Amine/63cbaf9f0f38bf0fbfb82b5ec9763e86 to your computer and use it in GitHub Desktop.
canny edge detection
def canny(image):
gray = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
blur = cv2.GaussianBlur(gray, (5, 5), 0)
canny = cv2.Canny(blur, 10, 30)
return canny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment