Alot of the time it works, but sometimes it still seems to fail.Code:if (isuptextMultiCustom(['orta', 'nter', 'nte', 'ortal', 'rtal', 'rta'])) then
Uptext: 'Enter Portal / 2 more options'
The word portal is in blue
Printable View
Alot of the time it works, but sometimes it still seems to fail.Code:if (isuptextMultiCustom(['orta', 'nter', 'nte', 'ortal', 'rtal', 'rta'])) then
Uptext: 'Enter Portal / 2 more options'
The word portal is in blue
Color is irrelevant.
What do you mean it fails?
Writeln(GetUpText);
Eter Po^al / 2 more options
Screenshot please? :)
Also, you can try http://simba.villavu.com/bin/Tools/OCRTests/ and see if it makes you any wiser.
Going to try all your suggestions + get you a screenshot.
http://img94.imageshack.us/img94/5614/eterptal.png
http://img815.imageshack.us/img815/5043/works.png
You guys were right, so do you guys think I should create a BMP of the uptext?
use waitOptionMulti I find it helps out a lot.
If all else fails, right click and choose option :p.
Countcol :O? lol :P Just throwin ideas in.
SCAR Code:var
UpTextCheck : Integer;
begin
UpTextCheck := {The Amount of colors for that uptext}
MMouse(X, Y, 4, 4);
Wait(RandomRange(800, 1500));
if CountColor({UptextColor}, {TheBoundsofTheUptext}) = UpTextCheck then
{rightclick w/e :P}
end;
Thanks. Did you try the OCR Test application?
CountColor works OK in these occasions, but I may just be able to improve the Simba uptext algorithm so it will identify these too, which is by far the most favourable option. It would be nice if you could file a bug? :)
PS: It seems like using shadow for the uptext here would work quite well. Perhaps I can add a option to Simba to temporarily change to Shadow uptext rather than normal. (Include this in the bug report please?)
You can also test Shadow uptext with the OCR Test app.
this happend to me i think it's cus of the spacing i think cus it finds the text if it's just one letter or you could try all letters but just searching for them seperatly
The problem here is that the white text is not recognized properly (the background is seen as white too), as the white colour ``leaks'' through the characters. Example (with diff background) here:
http://old.villavu.com/merlijn/ocrbench.png
Above red text is the final shadow result, above the final shadow result is the final non-shadow result.
The OCR filters away a lot of the wrong colours, by using analysing some attributes of the text. Detailed explanation is in the code, https://git.villavu.com/?p=simba.git...MLCore/ocr.pas
But it is true that the 'rt' have no spacing at all. (At times, anyway)
they seem to work fine for me if i try checking for one letter at a time so thats whyy i thought it was the spacing =S
tad bit offtopic i know, but when i run that it tells me that 100.bmp doesnt exist when i know it does
http://img203.imageshack.us/img203/7692/100aq.png
~shut
Ah, the OCR tools are probably a bit outdated. I'll update them when I get home. (That's when I may get time to work on this as well)