Created
May 11, 2020 10:54
-
-
Save prateekjoshi565/022285cb6a371d6a63efd2679a5f0f1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apply image thresholding | |
ret, thresh = cv2.threshold(img, 130, 145, cv2.THRESH_BINARY) | |
# plot image | |
plt.figure(figsize=(10,10)) | |
plt.imshow(thresh, cmap= "gray") | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment