Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created March 30, 2020 13:48
Show Gist options
  • Select an option

  • Save aravindpai/025b5b36b73a5ea9f0f02bb09840b65d to your computer and use it in GitHub Desktop.

Select an option

Save aravindpai/025b5b36b73a5ea9f0f02bb09840b65d to your computer and use it in GitHub Desktop.
_ , mask = cv2.threshold(gray, 200, 255, cv2.THRESH_BINARY)
plt.figure(figsize=(5,5))
plt.imshow(mask,cmap='gray')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment