![]() |
VOOZH | about |
Pytesseract or Python-tesseract is an Optical Character Recognition (OCR) tool for python. It will read and recognize the text in images, license plates, etc. Here, we will use the tesseract package to read the text from the given image.
Mainly, 3 simple steps are involved here as shown below:-
The following python code represents the Localizing of the Text and correctly guessing the text written in the image.
Now, follow the below steps to successfully Read Text from an image:
Example 1:
Execute the command below to view the Output.
python tesseract.py --image Images/title.png
We have The Original Image displayed.
We have the GrayScale Image Displayed. (p.png)
Output:
Example 2:
Execute the command below to view the Output.
python tesseract.py --image Images/OCR.png
We have The Original Image displayed.
We have the GrayScale Image Displayed. (p.png)
Output: