SRL Archive - OSR Help

question about GetTextAtEx


marksteele

2011-12-16 23:11:12

So I was planning on using simba to code a program for another game other then runescape and I have most of it done however I need to grab text from a screen to finish the last part.

So I took a look at the simba OCR documentation. I saw the GetTextAtEx function and it looks like what I need however I was wondering how exact it is. Can it read non-standard text? I would mainly be reading numbers and it would be things like






If it can read things like that could I get a short example of the function?

(also whatever happened to the wiki lol all I could find was the documentation)

Kyle Undefined

2011-12-16 23:14:33

You will need to make your own font for Simba to recognize that.

marksteele

2011-12-16 23:15:08

From: Kyle Undefined
You will need to make your own font for Simba to recognize that.


hmmm ok that shouldnt be too hard

(heh or I can just be lazy and make the user input it :P)

also if I had the font (one of them for example is MuseoSans) I should be able to get it to check through the font types till finds one it can recognize right, since it seems to use multiple font types

Wizzup?

2011-12-17 09:31:21

I'm not sure the OCR works very well for distorted text. It's not written to solve captchas, but you could give it a try. Otherwise try http://docs.villavu.com/simba/scriptref/bitmaps.html#finddeformedbitmaptolerancein (run each characters on the bitmap, see what one results with the highest accuracy.) Either way, I don't think there is a de-facto way to do this.

marksteele

2011-12-17 15:32:47

hmmm might be fun trying to do it then since I have a large amount of time on my hands :P. Its not a captcha persay the devs decided they would use 3 or 4 different font sets to make it look different lol.