nielsie95
2008-04-07 14:47:28
Hey,
For the last few days I've been working on an OCR for the RS ChatText. I think it worked out pretty good. I've attached the rar-file, it includes the plugin and the bitmap with the chars. Put the plugin in the SCAR plugin folder and the bitmap in the Fonts/SmallChars/ folder.
Run this and tell me how it works :)
Nielsie95
For the last few days I've been working on an OCR for the RS ChatText. I think it worked out pretty good. I've attached the rar-file, it includes the plugin and the bitmap with the chars. Put the plugin in the SCAR plugin folder and the bitmap in the Fonts/SmallChars/ folder.
program New;
var
a, b: TPointArray;
i, t: Integer;
begin
ClearDebug;
LoadLowChars;
t := GetSystemTime;
for i := 0 to 7 do
begin
FindColorsTolerance(a, clBlack, 10, 347 + (14 * i), 450, 360 + (14 * i), 0);
FindColorsTolerance(b, clBlue, 10, 347 + (14 * i), 450, 360 + (14 * i), 0);
a := CombineTPA(a, b);
WriteLn(OCR(a));
end;
WriteLn('OCR of the chatbox took '+IntToStr(GetSystemTime - t)+' ms.');
end.
Run this and tell me how it works :)
Nielsie95