Recognize 3 numbers on screen and save as variable

Ask gaming related questions (AHK v1.1 and older)
thut11
Posts: 58
Joined: 13 Apr 2020, 14:00

Recognize 3 numbers on screen and save as variable

Post by thut11 » 15 May 2022, 16:05

hi, i am using Vis2 lib to recognize some variable text on the screen and save it as a string variable(viewtopic.php?f=6&t=36047) but the waiting time for this is around 1 second(for 3digits number).
Does anyone know a faster way for this(i need it to work basically instant)?
I can't read app memory pointers&addresses to get it this way.

Maybe i can make Vis2 work for numbers only so it becomes faster or any other way?
Some online OCRs in google are recognizing the screenshot in ~0.3s which is a decent time but maybe theres a way for even better times (https://ocr.space/).

User avatar
mikeyww
Posts: 27113
Joined: 09 Sep 2014, 18:38

Re: Recognize 3 numbers on screen and save as variable

Post by mikeyww » 15 May 2022, 16:14

There are some other OCR scripts-- I think FindText and OCR, maybe others, too.

thut11
Posts: 58
Joined: 13 Apr 2020, 14:00

Re: Recognize 3 numbers on screen and save as variable

Post by thut11 » 15 May 2022, 16:22

mikeyww wrote:
15 May 2022, 16:14
There are some other OCR scripts-- I think FindText and OCR, maybe others, too.
Hi, i tested all of them and Vis2 was the fastest for me which gave me 0.550s result.
The thing is, it is still too slow in my situation, i know it is trying to recognize text so maybe can i somehow edit it to make it work for NUMBERS only?
It should be easier to recognize (0-9) characters only instead of (A-Z-0-9+ special characters and other langauges than English).

User avatar
mikeyww
Posts: 27113
Joined: 09 Sep 2014, 18:38

Re: Recognize 3 numbers on screen and save as variable

Post by mikeyww » 15 May 2022, 16:38

I imagine you could! I couldn't. Best of luck.

viewtopic.php?f=18&t=104102
[Mod edit: Removed duplicate topic. ]

Post Reply

Return to “Gaming Help (v1)”