frame_vector 149 lib/gocr/box.c nx = box1->frame_vector[i2-0][0] - box1->frame_vector[i2-1][0]; frame_vector 150 lib/gocr/box.c ny = box1->frame_vector[i2-0][1] - box1->frame_vector[i2-1][1]; frame_vector 152 lib/gocr/box.c mx = box1->frame_vector[i2+1][0] - box1->frame_vector[i2-0][0]; frame_vector 153 lib/gocr/box.c my = box1->frame_vector[i2+1][1] - box1->frame_vector[i2-0][1]; frame_vector 174 lib/gocr/box.c box1->frame_vector[i2][0]=box1->frame_vector[i2+1][0]; frame_vector 175 lib/gocr/box.c box1->frame_vector[i2][1]=box1->frame_vector[i2+1][1]; frame_vector 232 lib/gocr/box.c memcpy(tmpbox.frame_vector[i1], frame_vector 233 lib/gocr/box.c bsmaller->frame_vector[i4],2*sizeof(int)); frame_vector 254 lib/gocr/box.c memcpy(box1->frame_vector, frame_vector 255 lib/gocr/box.c tmpbox.frame_vector,sizeof(int)*2*MaxFrameVectors); frame_vector 295 lib/gocr/box.c x = box1->frame_vector[i4][0]; frame_vector 296 lib/gocr/box.c y = box1->frame_vector[i4][1]; frame_vector 306 lib/gocr/box.c box1->frame_vector[i4][0] = box1->frame_vector[i4+i3-i2][0]; frame_vector 307 lib/gocr/box.c box1->frame_vector[i4][1] = box1->frame_vector[i4+i3-i2][1]; frame_vector 320 lib/gocr/box.c x = box1->frame_vector[0][0]; /* last x */ frame_vector 321 lib/gocr/box.c y = box1->frame_vector[0][1]; /* last y */ frame_vector 327 lib/gocr/box.c x = box1->frame_vector[i2][0]; frame_vector 328 lib/gocr/box.c y = box1->frame_vector[i2][1]; frame_vector 334 lib/gocr/box.c if (x < box1->x0) x = box1->frame_vector[i2][0] = box1->x0; frame_vector 335 lib/gocr/box.c if (x > box1->x1) x = box1->frame_vector[i2][0] = box1->x1; frame_vector 336 lib/gocr/box.c if (y < box1->y0) y = box1->frame_vector[i2][1] = box1->y0; frame_vector 337 lib/gocr/box.c if (y > box1->y1) y = box1->frame_vector[i2][1] = box1->y1; frame_vector 342 lib/gocr/box.c box1->frame_vector[i4][0] = box1->frame_vector[i4+1][0]; frame_vector 343 lib/gocr/box.c box1->frame_vector[i4][1] = box1->frame_vector[i4+1][1]; frame_vector 359 lib/gocr/box.c x = box1->frame_vector[i2][0] = lx; frame_vector 360 lib/gocr/box.c y = box1->frame_vector[i2][1] = ly; frame_vector 123 lib/gocr/gocr.h int frame_vector[MaxFrameVectors][2]; /* may be 16*int=fixpoint_number */ frame_vector 123 lib/gocr/ocr0.c r1x=box1->frame_vector[j1][0]; frame_vector 124 lib/gocr/ocr0.c r1y=box1->frame_vector[j1][1]; frame_vector 125 lib/gocr/ocr0.c r2x=box1->frame_vector[j2][0]; frame_vector 126 lib/gocr/ocr0.c r2y=box1->frame_vector[j2][1]; frame_vector 143 lib/gocr/ocr0.c r3x=box1->frame_vector[i][0]; frame_vector 144 lib/gocr/ocr0.c r3y=box1->frame_vector[i][1]; frame_vector 212 lib/gocr/ocr0.c aa[0]=x=box1->frame_vector[j2][0]; /* x */ frame_vector 213 lib/gocr/ocr0.c aa[1]=y=box1->frame_vector[j2][1]; /* y */ frame_vector 225 lib/gocr/ocr0.c x=box1->frame_vector[i][0]; /* take a vector */ frame_vector 226 lib/gocr/ocr0.c y=box1->frame_vector[i][1]; frame_vector 615 lib/gocr/ocr0.c if (y1-box1->frame_vector[ i][1]>dy/4) break; // fatal! frame_vector 624 lib/gocr/ocr0.c if (2*box1->frame_vector[i][0] < aa[0][0]+aa[1][0]-1-dx/16) Break; frame_vector 625 lib/gocr/ocr0.c if (2*box1->frame_vector[i][0] < aa[0][0]+aa[1][0]) ad=99*ad/100; // f frame_vector 974 lib/gocr/ocr0.c x=box1->frame_vector[i1][0]; frame_vector 975 lib/gocr/ocr0.c y=box1->frame_vector[i1][1]; frame_vector 982 lib/gocr/ocr0.c i3, box1->frame_vector[i3][0]-x0,box1->frame_vector[i3][1]-y0);) frame_vector 996 lib/gocr/ocr0.c x=box1->frame_vector[i2][0]; frame_vector 997 lib/gocr/ocr0.c y=box1->frame_vector[i2][1]; frame_vector 999 lib/gocr/ocr0.c i2, box1->frame_vector[i2][0]-x0,box1->frame_vector[i2][1]-y0);) frame_vector 1003 lib/gocr/ocr0.c if ( box1->frame_vector[i3][0]-box1->frame_vector[i1][0]> dx/4 frame_vector 1004 lib/gocr/ocr0.c && box1->frame_vector[i3][1]-box1->frame_vector[i1][1]<=dy/8 frame_vector 1005 lib/gocr/ocr0.c && y<=box1->frame_vector[i1][1]) Break; frame_vector 1015 lib/gocr/ocr0.c if (abs((box1->frame_vector[i1][1]-y0) frame_vector 1016 lib/gocr/ocr0.c -(y1-box1->frame_vector[i2][1]))>dy/8) ad=99*ad/100; /* ~ tu */ frame_vector 1017 lib/gocr/ocr0.c if (abs(((y0+y1)/2-box1->frame_vector[i1][1]) frame_vector 1018 lib/gocr/ocr0.c -(box1->frame_vector[i2][1]-(y0+y1)/2))>dy/8) ad=99*ad/100; /* ~ tu */ frame_vector 1019 lib/gocr/ocr0.c if (box1->frame_vector[i2][0] frame_vector 1020 lib/gocr/ocr0.c -box1->frame_vector[i1][0]<=dx/8) Break; /* nonsignificant distance */ frame_vector 1021 lib/gocr/ocr0.c if (box1->frame_vector[i2][1] frame_vector 1022 lib/gocr/ocr0.c -box1->frame_vector[i1][1]<=dy/8) ad=97*ad/100; /* too flat (ff,H) */ frame_vector 1023 lib/gocr/ocr0.c if (box1->frame_vector[i2][1] frame_vector 1024 lib/gocr/ocr0.c -box1->frame_vector[i1][1]<=dy/2) ad=99*ad/100; frame_vector 1027 lib/gocr/ocr0.c box1->frame_vector[i1][0]-x0,box1->frame_vector[i1][1]-y0,\ frame_vector 1028 lib/gocr/ocr0.c box1->frame_vector[i2][0]-x0,box1->frame_vector[i2][1]-y0,\ frame_vector 1081 lib/gocr/ocr0.c if (box1->frame_vector[ i][1] frame_vector 1082 lib/gocr/ocr0.c <box1->frame_vector[i4][1]) i4=i; // get next maximum frame_vector 1083 lib/gocr/ocr0.c if (box1->frame_vector[ i][1]<=y0) break; // fatal! frame_vector 1085 lib/gocr/ocr0.c if (box1->frame_vector[i4][1]-y0<dy/4) Break; // ~MN frame_vector 1086 lib/gocr/ocr0.c if (y1-box1->frame_vector[i4][1]<dy/4) Break; // ~BCDEGIJLOQSUYZ frame_vector 1291 lib/gocr/ocr0.c if (box1->frame_vector[ i][1] frame_vector 1292 lib/gocr/ocr0.c <box1->frame_vector[i4][1]) i4=i; // get next maximum frame_vector 1293 lib/gocr/ocr0.c if (box1->frame_vector[ i][1]<=y0) break; // fatal! frame_vector 1295 lib/gocr/ocr0.c if (box1->frame_vector[i4][1]-y0<dy/4) Break; // ~MN frame_vector 1296 lib/gocr/ocr0.c if (y1-box1->frame_vector[i4][1]<dy/4) Break; // ~BCDEGIJLOQSUYZ frame_vector 1302 lib/gocr/ocr0.c if (x1-box1->frame_vector[i][0]<dy/4) Break; // h frame_vector 1303 lib/gocr/ocr0.c if (x1-box1->frame_vector[i][0]<dy/2) ad=98*ad/100; frame_vector 1538 lib/gocr/ocr0.c i =aa[1][3]; if (box1->frame_vector[i][1]<y1-dy/8) frame_vector 1553 lib/gocr/ocr0.c if (box1->frame_vector[i2][0]-x0>dx/2) Break; // ~3 frame_vector 1556 lib/gocr/ocr0.c if (box1->frame_vector[i ][0] frame_vector 1557 lib/gocr/ocr0.c -box1->frame_vector[i9][0]>dx/8) Break; // ~3 frame_vector 1594 lib/gocr/ocr0.c box1->frame_vector[i3][0]-x0,box1->frame_vector[i3][1]-y0);) frame_vector 1595 lib/gocr/ocr0.c ab[7][0]=box1->frame_vector[i3][0]; frame_vector 1596 lib/gocr/ocr0.c ab[7][1]=box1->frame_vector[i3][1]; frame_vector 3038 lib/gocr/ocr0.c if (box1->frame_vector[i][0] frame_vector 3039 lib/gocr/ocr0.c >=box1->frame_vector[j][0]) j=i; /* notice most right vector */ frame_vector 3042 lib/gocr/ocr0.c x=box1->frame_vector[j][0]; frame_vector 3043 lib/gocr/ocr0.c y=box1->frame_vector[j][1]; i1=j; frame_vector 3063 lib/gocr/ocr0.c if (box1->frame_vector[i][1] frame_vector 3064 lib/gocr/ocr0.c <=box1->frame_vector[j][1]) j=i; /* notice most upper vector */ frame_vector 3067 lib/gocr/ocr0.c x=box1->frame_vector[j][0]; frame_vector 3068 lib/gocr/ocr0.c y=box1->frame_vector[j][1]; i2=j; frame_vector 3083 lib/gocr/ocr0.c if (box1->frame_vector[i][0] frame_vector 3084 lib/gocr/ocr0.c <=box1->frame_vector[j][0]) j=i; /* notice most left vector */ frame_vector 3087 lib/gocr/ocr0.c x=box1->frame_vector[j][0]; frame_vector 3088 lib/gocr/ocr0.c y=box1->frame_vector[j][1]; i3=j; frame_vector 3108 lib/gocr/ocr0.c if (box1->frame_vector[i][1] frame_vector 3109 lib/gocr/ocr0.c >=box1->frame_vector[j][1]) j=i; /* notice lowest vector */ frame_vector 3112 lib/gocr/ocr0.c x=box1->frame_vector[j][0]; frame_vector 3113 lib/gocr/ocr0.c y=box1->frame_vector[j][1]; i4=j; frame_vector 3127 lib/gocr/ocr0.c if (box1->frame_vector[i3][0] - box1->frame_vector[i1][0] > dx/2) Break; frame_vector 3336 lib/gocr/ocr0.c x=box1->frame_vector[i1][0]; frame_vector 3337 lib/gocr/ocr0.c y=box1->frame_vector[i1][1]; frame_vector 3345 lib/gocr/ocr0.c MSG(fprintf(stderr,"xy= %d %d %d %d %d %d",x0,y0,x-x0,y-y0,box1->frame_vector[i3][0]-x0,box1->frame_vector[i3][1]-y0);) frame_vector 3346 lib/gocr/ocr0.c if ( box1->frame_vector[i3][1]-y0> dy/4 frame_vector 3347 lib/gocr/ocr0.c && box1->frame_vector[i3][0]-x>=0) Break; frame_vector 3348 lib/gocr/ocr0.c if ( box1->frame_vector[i3][1]-y> dy/8 frame_vector 3349 lib/gocr/ocr0.c && box1->frame_vector[i3][0]-x>=-dx/8) ad=98*ad/100; frame_vector 3350 lib/gocr/ocr0.c if ( box1->frame_vector[i3][1]-y> dy/8 frame_vector 3351 lib/gocr/ocr0.c && box1->frame_vector[i3][0]-x>= 0) ad=97*ad/100; frame_vector 3352 lib/gocr/ocr0.c if (box1->frame_vector[i3][0]-aa[0][0] frame_vector 3353 lib/gocr/ocr0.c < aa[3][0]-box1->frame_vector[i3][0]) break; // ~lI frame_vector 3354 lib/gocr/ocr0.c if (box1->frame_vector[i3][0]-aa[0][0] frame_vector 3355 lib/gocr/ocr0.c <(aa[3][0]-box1->frame_vector[i3][0])*2) ad=98*ad/100; // ~lI frame_vector 3375 lib/gocr/ocr0.c d=sq(box1->frame_vector[i5][0]-box1->frame_vector[i4][0]) frame_vector 3376 lib/gocr/ocr0.c +sq(box1->frame_vector[i5][1]-box1->frame_vector[i4][1]); frame_vector 3386 lib/gocr/ocr0.c x=box1->frame_vector[i2][0]; frame_vector 3387 lib/gocr/ocr0.c y=box1->frame_vector[i2][1]; frame_vector 3398 lib/gocr/ocr0.c if (box1->frame_vector[i1][0] frame_vector 3399 lib/gocr/ocr0.c -box1->frame_vector[i2][0]<=dx/8) Break; /* nonsignificant distance */ frame_vector 3402 lib/gocr/ocr0.c box1->frame_vector[i1][0]-x0,box1->frame_vector[i1][1]-y0,\ frame_vector 3403 lib/gocr/ocr0.c box1->frame_vector[i2][0]-x0,box1->frame_vector[i2][1]-y0,\ frame_vector 4987 lib/gocr/ocr0.c if (box1->frame_vector[i ][1]-y0<dy/4) Break; // U frame_vector 4988 lib/gocr/ocr0.c if (box1->frame_vector[i ][1]-y0<=dy/2) ad=97*ad/100; // imperfect a frame_vector 4991 lib/gocr/ocr0.c if (box1->frame_vector[i ][1] frame_vector 4992 lib/gocr/ocr0.c -box1->frame_vector[j ][1]<=dy/4) Break; // imperfect a frame_vector 4993 lib/gocr/ocr0.c if (box1->frame_vector[i7][1]>y0+dy/4) Break; // not to low frame_vector 4994 lib/gocr/ocr0.c if (box1->frame_vector[i1][1] frame_vector 4995 lib/gocr/ocr0.c -box1->frame_vector[i7][1]<dy/2) Break; frame_vector 4996 lib/gocr/ocr0.c if (box1->frame_vector[i4][1] frame_vector 4997 lib/gocr/ocr0.c -box1->frame_vector[i5][1]<dy/2) Break; frame_vector 4998 lib/gocr/ocr0.c if (box1->frame_vector[i7][0]<x0+dx/2) Break; frame_vector 4999 lib/gocr/ocr0.c if (box1->frame_vector[i1][0] frame_vector 5000 lib/gocr/ocr0.c -box1->frame_vector[i2][0]<=dx/8) Break; // ~1 frame_vector 5001 lib/gocr/ocr0.c if (box1->frame_vector[i1][0] frame_vector 5002 lib/gocr/ocr0.c -box1->frame_vector[i2][0]<=dx/4) ad=ad*99/100; // ~1 frame_vector 5003 lib/gocr/ocr0.c if (box1->frame_vector[i6][1]>y0+dy/8) ad=99*ad/100; // ~1 frame_vector 5012 lib/gocr/ocr0.c if (box1->frame_vector[ i][0] /* [0]=x */ frame_vector 5013 lib/gocr/ocr0.c <box1->frame_vector[i1][0]) break; /* curve? */ frame_vector 5017 lib/gocr/ocr0.c if (box1->frame_vector[ i][0] /* [0]=x */ frame_vector 5018 lib/gocr/ocr0.c >box1->frame_vector[i4][0]) break; frame_vector 5022 lib/gocr/ocr0.c if (box1->frame_vector[ i][1] > y0+dy/4) break; frame_vector 5079 lib/gocr/ocr0.c if (box1->frame_vector[i][0] frame_vector 5080 lib/gocr/ocr0.c >=box1->frame_vector[j][0]) j=i; /* notice most right vector */ frame_vector 5083 lib/gocr/ocr0.c x=box1->frame_vector[j][0]; frame_vector 5084 lib/gocr/ocr0.c y=box1->frame_vector[j][1]; frame_vector 5102 lib/gocr/ocr0.c if (box1->frame_vector[i][0] frame_vector 5103 lib/gocr/ocr0.c >=box1->frame_vector[j][0]) j=i; /* notice most right vector */ frame_vector 5107 lib/gocr/ocr0.c x=box1->frame_vector[j][0]; frame_vector 5108 lib/gocr/ocr0.c y=box1->frame_vector[j][1]; frame_vector 5309 lib/gocr/ocr0.c x=box1->frame_vector[i1][0]; frame_vector 5310 lib/gocr/ocr0.c y=box1->frame_vector[i1][1]; frame_vector 5315 lib/gocr/ocr0.c if ( box1->frame_vector[i3][0]-x> dx/4 frame_vector 5316 lib/gocr/ocr0.c && box1->frame_vector[i3][1]-y<=dy/8) Break; frame_vector 6273 lib/gocr/ocr0.c x=box1->frame_vector[i][0]; /* take a vector */ frame_vector 6274 lib/gocr/ocr0.c y=box1->frame_vector[i][1]; frame_vector 474 lib/gocr/ocr0n.c if (box1->frame_vector[ i][0] frame_vector 475 lib/gocr/ocr0n.c >box1->frame_vector[i6][0]) i6=i; // get next maximum frame_vector 476 lib/gocr/ocr0n.c if (box1->frame_vector[ i][0]<x0+dx/3 frame_vector 477 lib/gocr/ocr0n.c && box1->frame_vector[ i][1]<y0+dy/3 frame_vector 478 lib/gocr/ocr0n.c && box1->frame_vector[i6][0]>x0+dx/2) break; // 5 frame_vector 482 lib/gocr/ocr0n.c if (box1->frame_vector[i7][0]<=x0+ dx/4 frame_vector 483 lib/gocr/ocr0n.c && box1->frame_vector[i7][1]<=y0+2*dy/3) { frame_vector 496 lib/gocr/ocr0n.c if (box1->frame_vector[i5][1] frame_vector 497 lib/gocr/ocr0n.c -box1->frame_vector[i6][1]<dy/4) Break; // ~5 frame_vector 498 lib/gocr/ocr0n.c if (box1->frame_vector[i1][1]>y0+dy/2) Break; // not to low frame_vector 499 lib/gocr/ocr0n.c if (box1->frame_vector[i1][0]>x0+dx/8) Break; frame_vector 500 lib/gocr/ocr0n.c if (box1->frame_vector[i2][1]>(y0+ y1)/2) Break; frame_vector 501 lib/gocr/ocr0n.c if (box1->frame_vector[i2][1]>(5*y0+3*y1)/8) ad=99*ad/100; frame_vector 502 lib/gocr/ocr0n.c if (box1->frame_vector[i2][0]<(x0+x1+1)/2) Break; // fat tiny fonts? frame_vector 503 lib/gocr/ocr0n.c if (box1->frame_vector[i2][0]<(x0+2*x1)/3) ad=99*ad/100; frame_vector 504 lib/gocr/ocr0n.c if (box1->frame_vector[i3][0]>(3*x0+x1)/4) Break; frame_vector 505 lib/gocr/ocr0n.c if (box1->frame_vector[i3][0]>(7*x0+x1)/8) ad=99*ad/100; frame_vector 506 lib/gocr/ocr0n.c if (box1->frame_vector[i3][1]<(y0+3*y1)/4) Break; frame_vector 507 lib/gocr/ocr0n.c if (box1->frame_vector[i3][1]>(y0+7*y1)/8) ad=99*ad/100; frame_vector 509 lib/gocr/ocr0n.c if (box1->frame_vector[i5][0]>(x0+2*x1)/3) Break; frame_vector 510 lib/gocr/ocr0n.c if (box1->frame_vector[i5][0]>(x0+ x1)/2) ad=98*ad/100; frame_vector 511 lib/gocr/ocr0n.c if (box1->frame_vector[i5][0]>(2*x0+x1)/3) ad=99*ad/100; frame_vector 512 lib/gocr/ocr0n.c if (box1->frame_vector[i5][1]<(3*y0+5*y1)/8) Break; frame_vector 513 lib/gocr/ocr0n.c if (box1->frame_vector[i5][1]<(y0+3*y1)/4) ad=99*ad/100; frame_vector 514 lib/gocr/ocr0n.c if (box1->frame_vector[i6][1]>(y0+2*y1)/3) Break; frame_vector 515 lib/gocr/ocr0n.c if (box1->frame_vector[i6][1]>(y0+ y1)/2) ad=99*ad/100; frame_vector 516 lib/gocr/ocr0n.c if (box1->frame_vector[i6][0]<(x0+3*x1)/4) Break; frame_vector 517 lib/gocr/ocr0n.c if (box1->frame_vector[i6][0]<(x0+7*x1)/8) ad=99*ad/100; frame_vector 632 lib/gocr/ocr0n.c if (box1->frame_vector[ i][1] frame_vector 633 lib/gocr/ocr0n.c <box1->frame_vector[i5][1]) i5=i; // get next maximum frame_vector 634 lib/gocr/ocr0n.c if (box1->frame_vector[ i][1] frame_vector 635 lib/gocr/ocr0n.c >box1->frame_vector[i5][1]+1) break; // break after maximum frame_vector 636 lib/gocr/ocr0n.c if (box1->frame_vector[ i][0]<x0+dx/4) break; // type A B frame_vector 643 lib/gocr/ocr0n.c if (box1->frame_vector[i1][0] frame_vector 644 lib/gocr/ocr0n.c -box1->frame_vector[i2][0]<dx/4+1) ad=96*ad/100; // ~4x6q frame_vector 647 lib/gocr/ocr0n.c if (box1->frame_vector[i ][0]-x0<dx/4+1 frame_vector 648 lib/gocr/ocr0n.c && box1->frame_vector[i ][1]-y0<dy/4+1 frame_vector 660 lib/gocr/ocr0n.c if (box1->frame_vector[i1][1]>y0+dy/8) Break; // not to low frame_vector 661 lib/gocr/ocr0n.c if (box1->frame_vector[i2][1] frame_vector 662 lib/gocr/ocr0n.c -box1->frame_vector[i1][1]<dy/2) Break; frame_vector 663 lib/gocr/ocr0n.c if (box1->frame_vector[i3][0] frame_vector 664 lib/gocr/ocr0n.c -box1->frame_vector[i2][0]<dx/4) Break; frame_vector 665 lib/gocr/ocr0n.c if (abs(box1->frame_vector[i3][1] frame_vector 666 lib/gocr/ocr0n.c -box1->frame_vector[i2][1])>dy/4) Break; frame_vector 667 lib/gocr/ocr0n.c if (box1->frame_vector[i2][0]>x0+dx/8) Break; frame_vector 668 lib/gocr/ocr0n.c if (box1->frame_vector[i2][1]>y1-dy/8) Break; frame_vector 669 lib/gocr/ocr0n.c if (box1->frame_vector[i4][1] frame_vector 670 lib/gocr/ocr0n.c -box1->frame_vector[i2][1]<dy/8) Break; frame_vector 671 lib/gocr/ocr0n.c if (box1->frame_vector[i4][1] frame_vector 672 lib/gocr/ocr0n.c -box1->frame_vector[i2][1]<dy/6) ad=99*ad/100; frame_vector 674 lib/gocr/ocr0n.c if (box1->frame_vector[i4][1] frame_vector 675 lib/gocr/ocr0n.c -box1->frame_vector[i3][1]<1+dy/16) Break; frame_vector 676 lib/gocr/ocr0n.c if (box1->frame_vector[i4][1] frame_vector 677 lib/gocr/ocr0n.c -box1->frame_vector[i3][1]<dy/6) ad=99*ad/100; /* tall chars */ frame_vector 678 lib/gocr/ocr0n.c if (box1->frame_vector[i4][1] frame_vector 679 lib/gocr/ocr0n.c -box1->frame_vector[i3][1]<dy/8) ad=99*ad/100; frame_vector 680 lib/gocr/ocr0n.c if (box1->frame_vector[i4][1]<y1-1-dy/8) Break; frame_vector 681 lib/gocr/ocr0n.c if (box1->frame_vector[i3][0]<x0+dx/4) Break; frame_vector 682 lib/gocr/ocr0n.c if (box1->frame_vector[i3][0]<x0+dx/2) ad=98*ad/100; frame_vector 684 lib/gocr/ocr0n.c if (box1->frame_vector[i3][1]>y1-1) Break; frame_vector 685 lib/gocr/ocr0n.c if (box1->frame_vector[i3][1]>y1-dy/16) Break; frame_vector 686 lib/gocr/ocr0n.c if (box1->frame_vector[i3][1]>=y1) Break; // ~5x5# frame_vector 687 lib/gocr/ocr0n.c if (box1->frame_vector[i5][0]<x0+dx/3) Break; frame_vector 689 lib/gocr/ocr0n.c if (box1->frame_vector[i5][1]>y0+2*dy/3) Break; frame_vector 690 lib/gocr/ocr0n.c if (box1->frame_vector[i6][1] frame_vector 691 lib/gocr/ocr0n.c -box1->frame_vector[i5][1]<1+dy/16) Break; frame_vector 692 lib/gocr/ocr0n.c if (box1->frame_vector[i6][0]<x0+dx/3) Break; frame_vector 693 lib/gocr/ocr0n.c if (box1->frame_vector[i7][0]>x0+dx/2) Break; frame_vector 694 lib/gocr/ocr0n.c if (box1->frame_vector[i7][0]>x0+dx/3) ad=ad*99/100; frame_vector 695 lib/gocr/ocr0n.c if (box1->frame_vector[i6][1]<y0+dy/3) Break; frame_vector 696 lib/gocr/ocr0n.c if (box1->frame_vector[i6][0]<x0+dx/2) ad=96*ad/100; // ~ 42 frame_vector 697 lib/gocr/ocr0n.c if (box1->frame_vector[i6][0]<aa[2][0]-dx/2 frame_vector 699 lib/gocr/ocr0n.c if (box1->frame_vector[i7][1]<y0+dy/3) Break; frame_vector 700 lib/gocr/ocr0n.c if (abs(box1->frame_vector[i3][1] frame_vector 701 lib/gocr/ocr0n.c -box1->frame_vector[i2][1])>dy/4) Break; frame_vector 64 lib/gocr/output.c px->frame_vector[j][0] - px->x0, frame_vector 65 lib/gocr/output.c px->frame_vector[j][1] - px->y0); frame_vector 100 lib/gocr/output.c if ((px->frame_vector[i][0]-px->x0)/tx==(x-x0)/tx frame_vector 101 lib/gocr/output.c && (px->frame_vector[i][1]-px->y0)/ty==(y-y0)/ty) frame_vector 833 lib/gocr/pgm2asc.c box1->frame_vector[i2][0]=x; frame_vector 834 lib/gocr/pgm2asc.c box1->frame_vector[i2][1]=y; frame_vector 864 lib/gocr/pgm2asc.c box1->frame_vector[i2][0]=x; frame_vector 865 lib/gocr/pgm2asc.c box1->frame_vector[i2][1]=y; frame_vector 869 lib/gocr/pgm2asc.c nx=box1->frame_vector[i2-1][0]-box1->frame_vector[i2-2][0]; frame_vector 870 lib/gocr/pgm2asc.c ny=box1->frame_vector[i2-1][1]-box1->frame_vector[i2-2][1]; frame_vector 871 lib/gocr/pgm2asc.c mx=x -box1->frame_vector[i2-1][0]; frame_vector 872 lib/gocr/pgm2asc.c my=y -box1->frame_vector[i2-1][1]; frame_vector 877 lib/gocr/pgm2asc.c box1->frame_vector[i2][0]=x; frame_vector 878 lib/gocr/pgm2asc.c box1->frame_vector[i2][1]=y; frame_vector 1327 lib/gocr/pgm2asc.c rc=frame_vector(box3, x, y, cs, 1, 1, ds); frame_vector 2149 lib/gocr/pgm2asc.c if ( box2->frame_vector[ii ][0]<=xi[i ]) continue; frame_vector 2150 lib/gocr/pgm2asc.c if ( box2->frame_vector[ii ][0]> xi[i+2]) continue; frame_vector 2152 lib/gocr/pgm2asc.c if (abs(box2->frame_vector[ii ][0]-xi[i+1])<2) { frame_vector 2153 lib/gocr/pgm2asc.c dy= 2*box2->frame_vector[ii ][1] frame_vector 2154 lib/gocr/pgm2asc.c -box2->frame_vector[next][1] frame_vector 2155 lib/gocr/pgm2asc.c -box2->frame_vector[pre ][1]; frame_vector 2156 lib/gocr/pgm2asc.c dx= box2->frame_vector[next][0] frame_vector 2157 lib/gocr/pgm2asc.c -box2->frame_vector[pre ][0]; frame_vector 2162 lib/gocr/pgm2asc.c if (( box2->frame_vector[pre ][0]<=xi[i+1] frame_vector 2163 lib/gocr/pgm2asc.c && box2->frame_vector[next][0]>=xi[i+1]) frame_vector 2164 lib/gocr/pgm2asc.c || ( box2->frame_vector[pre ][0]>=xi[i+1] frame_vector 2165 lib/gocr/pgm2asc.c && box2->frame_vector[next][0]<=xi[i+1])) { frame_vector 2166 lib/gocr/pgm2asc.c if ( box2->frame_vector[ii ][1]>ymax) frame_vector 2167 lib/gocr/pgm2asc.c ymax= box2->frame_vector[ii ][1]; frame_vector 2168 lib/gocr/pgm2asc.c if ( box2->frame_vector[ii ][1]<ymin) frame_vector 2169 lib/gocr/pgm2asc.c ymin= box2->frame_vector[ii ][1]; frame_vector 2172 lib/gocr/pgm2asc.c if ( box2->frame_vector[ii ][1]>max0 frame_vector 2173 lib/gocr/pgm2asc.c && box2->frame_vector[ii ][0]<=xi[i+1]) frame_vector 2174 lib/gocr/pgm2asc.c max0=box2->frame_vector[ii ][1]; frame_vector 2175 lib/gocr/pgm2asc.c if ( box2->frame_vector[ii ][1]>max1 frame_vector 2176 lib/gocr/pgm2asc.c && box2->frame_vector[ii ][0]> xi[i+1]) frame_vector 2177 lib/gocr/pgm2asc.c max1=box2->frame_vector[ii ][1]; frame_vector 2178 lib/gocr/pgm2asc.c if ( box2->frame_vector[ii ][1]<min0 frame_vector 2179 lib/gocr/pgm2asc.c && box2->frame_vector[ii ][0]<=xi[i+1]) frame_vector 2180 lib/gocr/pgm2asc.c min0=box2->frame_vector[ii ][1]; frame_vector 2181 lib/gocr/pgm2asc.c if ( box2->frame_vector[ii ][1]<min1 frame_vector 2182 lib/gocr/pgm2asc.c && box2->frame_vector[ii ][0]> xi[i+1]) frame_vector 2183 lib/gocr/pgm2asc.c min1=box2->frame_vector[ii ][1];