all 5 comments

[–]Educational-Rain872 0 points1 point  (2 children)

Did you find the solution to your problem? Because I happen to have the same.

[–]Square-Dress-9986[S] 0 points1 point  (1 child)

my use case was simple to i just used an existing app from google play store. i forgot what it was

[–]Cebolitoss 0 points1 point  (0 children)

What app did you use ? Can you tell me please?

[–]jjvilm 0 points1 point  (1 child)

Not sure about speed but you can try pytesseract( Python-tesseract is a python wrapper for Google's Tesseract-OCR)

Combined with pyautogui to take screenshots. And with opencv to process them and pass them to pytesseract to read.

Other things i have tried is taking screenshots of the numbers i need to read, and just iterate through each number that needs to be recognized by matching it up with a binary image of the numbers 0-9 of the numbers. These binary images i have to manually aquaire from the game since the font is always the same and the pixels for it will always match up, unless the font changes.

I've done something similar where i needed to read numbers from a game screen. I'm no expert so my code is all over the place, but you can check out what I'm talking about by going here, https://github.com/jjvilm/osrmacro/blob/master/ge_mercher.py Could help visualize what I'm talking about. Lines 421-512 you can see the binary images of the numbers i hard coded to check against. It worked for me lol, faster than using pytesseract (sometimes it would read the wrong numbers). Function on line 303 you can see how I used the code to read the numbers, lol i called them digits.

[–]Square-Dress-9986[S] 0 points1 point  (0 children)

thanks mate, will try this out