Requirement: To read or predict characters from an image.
Preq: I'm using pytesseract and opencv in python to read text from imagesvbut I see an issue as explained below.
Issue:
There are few images where text is sliced horizontally as attached.
When I run python function to read text from attached image, it readsincorrect text. Sample code snippet to read text from image is as below.
Actual Output: For the attached image instead of UnAuthorizedInteger it read as InAutharizedintanear
def extract_text_from_image(image_path): image = Image.open(image_path) text = pytesseract.image_to_string(image) return text
So, can we use any deep learning models here to predict text from images when the images are sliced as attached above? If yes, pls let me know the strategy to apply.