bud_wis_er_420
2013-12-27 23:05:23
Ok I'm making a bot for a game called Eve Online. I need to be able to read text to get the cargo name, quantity, etc. I remade all the fonts. Everything was working well till I hit a snag. In this word..
.. the "ct" are touching. Instead of reading "Insecticide", my results are "InseYicide".I have to stick with the color and color tol I have. Which is color: 10329501 and tol: 117; I spent hours with aca to get that color just right. Btw I tryied removing the grey part of the outer edges of c didn't work. You can see what the script sees as text with this pic.

I thought with a min spacing of 0 it would pick up that those are 2 different characters.
Here are the characters in question.

Can I not get Simba to read touching characters?
Below you can download everything I got to see for your self. The bot works, it just hangs up on this word and only this word so far. It reads everything else just fine. I tried every which way I could think of to edit the pics to make it work. With black edges, no black edges, only black edges on the side of the chars that are not touching.
My get text function…
A screenshot of the client you can test with.
http://img9.imageshack.us/img9/8839/ry67.png
Thanks for any help you can give guys.
.. the "ct" are touching. Instead of reading "Insecticide", my results are "InseYicide".I have to stick with the color and color tol I have. Which is color: 10329501 and tol: 117; I spent hours with aca to get that color just right. Btw I tryied removing the grey part of the outer edges of c didn't work. You can see what the script sees as text with this pic.

I thought with a min spacing of 0 it would pick up that those are 2 different characters.
Here are the characters in question.

Can I not get Simba to read touching characters?
Below you can download everything I got to see for your self. The bot works, it just hangs up on this word and only this word so far. It reads everything else just fine. I tried every which way I could think of to edit the pics to make it work. With black edges, no black edges, only black edges on the side of the chars that are not touching.
My get text function…
function GetTextIn(x1, y1, x2, y2: integer): string;
var
TPA: TPointArray;
Box: TBox;
begin
Result := 'Failed to get Text';
Box := IntToBox(x1, y1, x2, y2);
if FindColorsTolerance(TPA, 10329501 , Box.X1, Box.Y1, Box.X2, Box.Y2, 117) then
begin
Box := GetTPABounds(TPA);
//writeln(ToStr(Box));
Result := GetTextAtExWrap(Box.X1, Box.Y1 - 3, Box.X2, Box.Y2, 0, 3, 3, 10329501 , 117, 'EveNormalText');
end;
end;
A screenshot of the client you can test with.
http://img9.imageshack.us/img9/8839/ry67.png
Thanks for any help you can give guys.
