`Divine
2010-12-10 15:56:12
Hello, I'm looking to use basic OCR.
So far I've created the following font set of 2 and 5 for test purposes in a folder (Beta) under the font directory.
The following are my font set.
and
2.bmp and 5.bmp respectively.
I've written the following test code
I'm looking to return the text 25 from 25,000,000 in the below image. The defined rectangle is roughly around the 25 with a generous amount of space around it.

It compiles fine but it either gives no output or

I'm not really sure what I'm doing wrong. The font set looks correct and the coords, colors, parameters etc should be correct. Thanks for any help.
So far I've created the following font set of 2 and 5 for test purposes in a folder (Beta) under the font directory.
The following are my font set.
and
2.bmp and 5.bmp respectively.I've written the following test code
program Test;
var
Line : String;
begin
ActivateClient;
LoadFont('Beta',false);
Line := GetTextAtEx(497,169, 535, 188, 0, 10, 0, 45567, 80, 'Beta');
WriteLn(Line);
freefont('Beta');
end.I'm looking to return the text 25 from 25,000,000 in the below image. The defined rectangle is roughly around the 25 with a generous amount of space around it.

It compiles fine but it either gives no output or

I'm not really sure what I'm doing wrong. The font set looks correct and the coords, colors, parameters etc should be correct. Thanks for any help.
