Tesseract OCR quality issues with python

50 views
Skip to first unread message

Vidur Malhotra

unread,
Jun 12, 2018, 6:16:36 AM6/12/18
to tesseract-ocr
Hi,
I tried running tesseract OCR on the same image using below 2 approach:
1. Command line (tesseract version 3.05.01)

tesseract image.jpg out.txt

2. using pytesseract in python (pytesseract version 0.2.2)

import PIL
from PIL import Image
import pytesseract

text = pytesseract.image_to_string(Image.open('image.jpg'), lang='eng')
print(text)


I got better results with approach 1. Can anybody help me to achieve the same result using pytesseract.
Reply all
Reply to author
Forward
0 new messages