Reputation: 11
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
Upvotes: 0
Views: 360
Reputation: 11
Some times the text may lie on the border of of the images. So padding the images along side the border resolves the issue
Upvotes: 0