mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-29 04:22:16 -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:
parent
86221bbe93
commit
cc74811fe7
@ -712,8 +712,9 @@ var
|
||||
|
||||
begin
|
||||
fD := Fonts.GetFont(font);
|
||||
writeln(format('W, H: %d, %d', [fD.max_width, fd.max_height]));
|
||||
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;
|
||||
|
@ -28,7 +28,7 @@ type
|
||||
neg: array of array of integer;
|
||||
neg_adj: array of real;
|
||||
map: array of char;
|
||||
width,height: integer;
|
||||
width,height, max_width, max_height: integer;
|
||||
inputs,outputs: integer;
|
||||
end;
|
||||
|
||||
@ -209,6 +209,8 @@ begin
|
||||
len:= Length(masks);
|
||||
result.width:= w;
|
||||
result.height:= h;
|
||||
result.max_width:=0;
|
||||
result.max_height:=0;
|
||||
size:= w * h;
|
||||
SetLength(result.pos,len,size);
|
||||
SetLength(result.pos_adj,len);
|
||||
@ -247,6 +249,8 @@ begin
|
||||
result.ascii[ord(ascii)].yoff:= masks[i].t;
|
||||
result.ascii[ord(ascii)].width:= masks[i].width;
|
||||
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;
|
||||
result.inputs:= size;
|
||||
result.outputs:= len;
|
||||
|
Loading…
Reference in New Issue
Block a user