Skip to content

Instantly share code, notes, and snippets.

@lucapiccinelli
Created March 31, 2016 05:07
Show Gist options
  • Save lucapiccinelli/95e6dfb4e9a7670a22698b0f074331c1 to your computer and use it in GitHub Desktop.
Save lucapiccinelli/95e6dfb4e9a7670a22698b0f074331c1 to your computer and use it in GitHub Desktop.
kernel = np.ones((1, 5), np.uint8)
im = cv2.morphologyEx(im, cv2.MORPH_DILATE, kernel, anchor=(2, 0), iterations=2) #dilatazione
im = cv2.morphologyEx(im, cv2.MORPH_CLOSE, kernel, anchor=(2, 0), iterations=2) #chiusura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment