Issue
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
Solution
Some times the text may lie on the border of of the images. So padding the images along side the border resolves the issue
Answered By - Vikas
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.