ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Khameleon on November 10, 2009, 03:56:57 PM
-
Could Anyone give a little assistance on how to use OCR?
most of the subs are premade for certain gumps... I'm trying to read the Percentage number in the bottem right corner of the Imbuing page.
in these two subs.. X Y preety strait forward.. what is the 0 C and T? e?
this has got me scratching my head for ours..
; call kalocr.txt getChar <x> <y> <o> <c> <t>
; call kalocr.txt getText <x> <y> <o> <c> <t> <e>
-
<o> = text | number (see info about "problem with O")
Here is what that is all about...
problem with 'O': this OCR script "reads" characters displayed using a very specific and very common UO font by recognizing the shape of each character. the problem with 'O' is that both 'O' and ZERO have the same shape and as such it is impossible for this script to tell them apart. you can specify "text" or "number" to control how 'O' is returned by some of the routines (useful if you know your scanning text without numbers or text with only numbers).
if you want it to read numbers set it to zero, if just letters set it to o.