Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

How to predict characters from an image?

$
0
0

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:

  1. There are few images where text is sliced horizontally as attached.text in attached image is UnAuthorizedInteger

  2. 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.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>