Home python How to recognize text from the image?

How to recognize text from the image?

Author

Date

Category

I had such a problem. I want to write a program for recognizing and reading text from the image (by type of capcha). I use Python. What kind of library need to use and how to count the text without downloading the picture itself (when it just highlighted in the browser)?


Answer 1, Authority 100%

Small example:

from pil import image
Import pyteseract.
pyteseract.pyteseratorAct.TesseratorAct_cmd = R '& lt; Path & GT; \ TesseRact-OCR \ TESSERACT.EXE'
Print (image.In_To_String (Image.open (R'img \ Small_Pack \ Pil \ 3.png '), lang = "rus"))

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions