Jump to content
Sign in to follow this  
kforsey

Reading Text

Recommended Posts

kforsey

If i was making a Bot for a game, is it possible to make the Bot read text that appears on the screen. If so, how?

Share this post


Link to post
Share on other sites
Insolence

Yes.

What I did was make a grid system out of each line and character. I then took the top-left most coordinate of each character and made an individual set of coordinates for each pixel in that character:

"0,-1;-1,0;-1,-1;-7,0;-7,-1;"

Which is 'A' in the game I play.

I'm not sure if I did it the best way possible, but here's the source.

Edited by Insolence

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites
AutoElectric

Yes.

What I did was make a grid system out of each line and character.  I then took the top-left most coordinate of each character and made an individual set of coordinates for each pixel in that character:

"0,-1;-1,0;-1,-1;-7,0;-7,-1;"

Which is 'A' in the game I play.

I'm not sure if I did it the best way possible, but here's the source.

<{POST_SNAPBACK}>

I'm confused. Can you please elaborate?

From the book of AutoElectric"Do not accuse another man, without proof, or you too will be accused", Morals 4:21The book of AutoElectric is MY book of morals, and follows biblical teachings.

Share this post


Link to post
Share on other sites
Insolence

I'll diagram it:

1) Find the text

2) Find each line

3) Find each character

4) Start point of black pixel coordinates

5) Record each black pixel

Edited by Insolence

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×