No account yet ?
Tested in Anaconda and Python 3.7
from PIL import Image import pytesseract import numpy as np filename = 'OCR-01.PNG' img1 = np.array(Image.open(filename)) text = pytesseract.image_to_string(img1) print(text)
Original image
Text / Texte OCR
This is a lot of 12 point text to test the
ocr code and see if it works on all types
of file format.
The quick brown dog jumped over the
lazy fox. The quick brown dog jumped
over the lazy fox. The quick brown dog
jumped over the lazy fox. The quick
brown dog jumped over the lazy fox.
Welcome, my name is Eric Soupet and I am the administrator of the site elodees.com. elodees.com is a state of the art of Artificial Intelligence and aims to be collaborative, you can now offer content such as articles, events, tutorials, ... so don't hesitate !
Platform images credit : Pixabay - Pixabay License | Pexels - Pexels License