# 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