0

string = pytesseract.image_to_string(res,lang ='eng',config = config)

I am getting an error as: pytesseract.pytesseract.TesseractError: (255, '')

i am cropping the images and performing some image processing tasks. After that I want to do ocr, on running the ocr i am getting the error.

string = pytesseract.image_to_string(res,lang ='eng',config = config)

expected the ocr result. but tesseract is throwing an error and stops executing

Vikas
  • 11
  • 2

1 Answers1

0

Some times the text may lie on the border of of the images. So padding the images along side the border resolves the issue

Vikas
  • 11
  • 2