Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Grayscale/Binary images using PIL"1.jpg")
threshold = 100
im = im2.point(lambda p: p > threshold and 255)"d.jpg")
result = tesseract.ProcessPagesWrapper(img,api)
print result
Copy link


Copy link

Hi, can you please explain to me lines number 6 and 7 ? Thank you

Copy link

moi90 commented Apr 4, 2020

Have a look at the documentation: Image.point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment