How to implement OCR/captcha solver?

Ask gaming related questions (AHK v1.1 and older)
EB32
Posts: 14
Joined: 08 Feb 2017, 16:10

How to implement OCR/captcha solver?

04 Aug 2017, 23:00

Hello all, I've been using a script that I made months ago for a game that I play. The script itself is very very simple. It's something along the lines of:
Loop{
attack commands
movement commands
}

However, I still have to be physically present (or at least check in every few minutes) because this game allows players to do a "bot check" on other players. I then have about 30s to fill out the captcha numbers or I get banned.

I want to automate this process. I did a little bit of digging around and I found out that what I was looking for was OCR. How do I implement this into my ahk script?

--
Additional info:
I found a captcha solver on YouTube which will solve captchas that you have a picture of in a specified folder. In order to use this, my script would have to take the following steps:
-detect the captcha
-take a screenshot
-crop out the captcha portion? (The captcha is always in the same position on the screen and is always the same size)
-save that picture (maybe via paint?) in the specified captcha folder
-run the program
-retrieve the numbers
-fill out the captcha in game
-hit "ok" on the captcha window in game
-reset my script

Would this be the best way to go about it? What are the alternatives?
mast4rwang
Posts: 141
Joined: 19 Jul 2017, 09:59

Re: How to implement OCR/captcha solver?

05 Aug 2017, 09:01

Easy to do
EB32
Posts: 14
Joined: 08 Feb 2017, 16:10

Re: How to implement OCR/captcha solver?

05 Aug 2017, 16:05

mast4rwang wrote:Easy to do
:c how though
Phi_Tho

Re: How to implement OCR/captcha solver?

07 Aug 2017, 09:17

I second this, I have a similar application for OCR and would prefer to implement it into a AHK script.

Anyone around that can point us in the right direction?
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: How to implement OCR/captcha solver?

07 Aug 2017, 12:18

Probably not worth the effort, if it's even possible.
User avatar
Spawnova
Posts: 557
Joined: 08 Jul 2015, 00:12
Contact:

Re: How to implement OCR/captcha solver?

07 Aug 2017, 13:04

I did this once for a game called runescape, it is somewhat easy if the text is always the same, in that game it was.

I saved all the text to png files 0-9 a-z, I then scanned the screen for every one of those files, saving each location in an array, then determined their position from eachother to piece the words together.
So if I found the letter T and A and the distance bewteen their x/y is less than 3 etc, then they are part of a word, if position X of a is smaller then X of T then a goes before T.

If the text rotates or scales it may be very difficult if not impossible though.
User avatar
tank
Posts: 3127
Joined: 28 Sep 2013, 22:15
Location: CarrolltonTX
Contact:

Re: How to implement OCR/captcha solver?

07 Aug 2017, 14:45

Bypassing Captcha is not something we want on our forums please take this nonsense elsewhere
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 75 guests