r/programming • u/Ornery_Watch_2769 • Mar 26 '21
How to extract text from image in Python
https://hinty.io/vserhiyev/how-to-extract-text-from-image-in-python/18
Mar 26 '21
Are the upvotes and comments bought? Why is this getting attention?
1
u/lazerflipper Mar 26 '21
had the same thought. this thread feels like a shitty attempt at social media marketing.
7
u/rtzll Mar 26 '21
super useful tool to capture text from a screenshot: https://github.com/ianzhao05/textshot
(also written in Python and using pytesseract)
1
u/ITChristian21 Mar 26 '21
Unfortunately, tesseract documentation is not well explained regarding its advanced features, like training new fonts. But it is a very great tool.
-15
-17
u/gootecks Mar 26 '21
omfg I can't believe it was that easy, WTF O_O
thanks OP!
5
u/itsgreater9000 Mar 26 '21
it's not, this is a really basic tutorial about the pytesseract (really, tesseract) API. if you want to do anything that is more complicated than what OP used (either because your picture is a mess, or you have a non-standard font, or hopefully it's not using latin letters, etc.) you will need to dig deeper.
69
u/meem1029 Mar 26 '21
"Hey, there's a library that does this thing" doesn't feel like a very substantial article for r/programming. It's not even a particularly well written article (why is there a random "Convert to pdf" section at the bottom? What sorts of "boxes, confidences, line and page numbers" are presented or how do I use them?)