Hey guys, I have a simple question. What function would you use to recognise a number from Tbox on my rs3 screen and return it as a result into my script?
Hey guys, I have a simple question. What function would you use to recognise a number from Tbox on my rs3 screen and return it as a result into my script?
tesseract or fonts... but show a picture please
Red & Green Salamander Hunter // Construction // Gilded Altar // Major help w/ Kyles Runespan // VWB Smither // PhoenixFeathers // GemCutter // Bonfire // LRC Miner // Spell Tab Maker // ApeAtollAgility // IvyWC // RoguesCooker // Herblore // AshamanButterfly // AshamanPowerMiner // Fletcher // LividFarm
I'd need it to recognise this collon at GE screen
Capture.PNG
Using tesseract, something like:
Simba Code:function GEPrice(Bounds: TBox): String;
begin
result := tesseractGetText(Bounds.x1,Bounds.y1,Bounds.x2,Bounds.y2,5,5,false,0,'')
end;
Change the scaling parameters as required. Or you can dynamically grab bounds by search for colours and returning TPA bounds.
EDIT: Realised you want just numbers.
try
Simba Code:function GEPrice(Bounds: TBox): Integer;
var
Text: String;
begin
Text := tesseractGetText(Bounds.x1,Bounds.y1,Bounds.x2,Bounds.y2,5,5,false,0,'');
result := StrToIntDef(ExtractFromStr(Text, Numbers), 0);
end;
There are currently 1 users browsing this thread. (0 members and 1 guests)