1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-11 03:45:06 -05:00

OCRData -> max_width, max_height.

git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@485 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
Wizzup? 2010-01-27 00:37:48 +00:00
parent 86221bbe93
commit cc74811fe7
2 changed files with 7 additions and 2 deletions

View File

@ -712,8 +712,9 @@ var
begin begin
fD := Fonts.GetFont(font); fD := Fonts.GetFont(font);
writeln(format('W, H: %d, %d', [fD.max_width, fd.max_height]));
SetLength(TPA, 0); SetLength(TPA, 0);
TClient(Client).MFinder.FindColorsTolerance(TPA, color, atX, atY, {fuck}0, {fuck}0, tol); //TClient(Client).MFinder.FindColorsTolerance(TPA, color, atX, atY, {fuck}0, {fuck}0, tol);
end; end;

View File

@ -28,7 +28,7 @@ type
neg: array of array of integer; neg: array of array of integer;
neg_adj: array of real; neg_adj: array of real;
map: array of char; map: array of char;
width,height: integer; width,height, max_width, max_height: integer;
inputs,outputs: integer; inputs,outputs: integer;
end; end;
@ -209,6 +209,8 @@ begin
len:= Length(masks); len:= Length(masks);
result.width:= w; result.width:= w;
result.height:= h; result.height:= h;
result.max_width:=0;
result.max_height:=0;
size:= w * h; size:= w * h;
SetLength(result.pos,len,size); SetLength(result.pos,len,size);
SetLength(result.pos_adj,len); SetLength(result.pos_adj,len);
@ -247,6 +249,8 @@ begin
result.ascii[ord(ascii)].yoff:= masks[i].t; result.ascii[ord(ascii)].yoff:= masks[i].t;
result.ascii[ord(ascii)].width:= masks[i].width; result.ascii[ord(ascii)].width:= masks[i].width;
result.ascii[ord(ascii)].height:= masks[i].height; result.ascii[ord(ascii)].height:= masks[i].height;
result.max_width := max(result.max_width, masks[i].width);
result.max_height := max(result.max_height, masks[i].height);
end; end;
result.inputs:= size; result.inputs:= size;
result.outputs:= len; result.outputs:= len;