Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
img_t = cv2.imread("frag.png")
img1 = cv2.cvtColor(img_t, cv2.COLOR_BGR2GRAY)
thresh7 = cv2.adaptiveThreshold(img1, 255, cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY, 121,15)
cv2.imshow('text',thresh7)
cv2.waitKey(0)
cv2.destroyAllWindows()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment