num_cross 223 lib/gocr/detect.c || num_cross(box2->x0,box2->x1,(box2->y0+box2->y1)/2,(box2->y0+box2->y1)/2,box2->p,JOB->cfg.cs)>2 ) num_cross 218 lib/gocr/gocr.h int num_cross(int x0, int x1, int y0, int y1, num_cross 298 lib/gocr/ocr0.c && num_cross(xl,xr,yu +(yl-yu)/4,yu+ (yl-yu)/4,box1->p,cs) == 2 num_cross 299 lib/gocr/ocr0.c && num_cross(xl,xr,yl-1-(yl-yu)/2,yl-1-(yl-yu)/2,box1->p,cs) == 2 num_cross 385 lib/gocr/ocr0.c && num_cross(xl,xr,yu ,yu ,box1->p,cs) == 1 num_cross 386 lib/gocr/ocr0.c && ( num_cross(xl,xr,yl ,yl ,box1->p,cs) == 2 num_cross 387 lib/gocr/ocr0.c || num_cross(xl,xr,yl-1,yl-1,box1->p,cs) == 2 )) num_cross 398 lib/gocr/ocr0.c && ( num_cross(xl,xr,yu ,yu ,box1->p,cs) == 2 num_cross 399 lib/gocr/ocr0.c || num_cross(xl,xr,yu+1,yu+1,box1->p,cs) == 2 ) num_cross 400 lib/gocr/ocr0.c && num_cross(xl,xr,yl ,yl ,box1->p,cs) == 1 ) num_cross 416 lib/gocr/ocr0.c && ( num_cross(xl,xr,yu ,yu ,box1->p,cs) == 2 num_cross 417 lib/gocr/ocr0.c || num_cross(xl,xr,yu+1,yu+1,box1->p,cs) == 2 ) num_cross 418 lib/gocr/ocr0.c && num_cross(xl,xr,yl ,yl ,box1->p,cs) == 1 ) num_cross 426 lib/gocr/ocr0.c && num_cross(xl,xr,yu,yu,box1->p,cs) == 2 num_cross 427 lib/gocr/ocr0.c && num_cross(xl,xr,yl,yl,box1->p,cs) == 2 ) num_cross 431 lib/gocr/ocr0.c if( num_cross(xl,xr,(yu+yl)/2,(yu+yl)/2,box1->p,cs) >1 ) num_cross 432 lib/gocr/ocr0.c if( num_cross((xl+xr)/2,(xl+xr)/2,yu,yl,box1->p,cs) >1 ) num_cross 475 lib/gocr/ocr0.c if( num_cross(x0,x1,y0+dy/4 ,y0+dy/4 ,box1->p,cs) > 2 num_cross 476 lib/gocr/ocr0.c && num_cross(x0,x1,y0+dy/4+1,y0+dy/4+1,box1->p,cs) > 2 ) Break; // gt num_cross 477 lib/gocr/ocr0.c x=(x0+x1)/2;i= num_cross(x,x,y0,y1,box1->p,cs); // v0.40 num_cross 478 lib/gocr/ocr0.c if (i!=3) { x=(x0+2*x1)/3;i= num_cross(x,x,y0,y1,box1->p,cs); } num_cross 479 lib/gocr/ocr0.c if (i!=3) { x=(x0+3*x1)/4;i= num_cross(x,x,y0,y1,box1->p,cs); } num_cross 480 lib/gocr/ocr0.c if (i!=3) { i= num_cross((x0+2*x1)/3,(x0+x1)/2,y0,y1,box1->p,cs); } num_cross 495 lib/gocr/ocr0.c for(y=1;y<dy/2;y++) if( num_cross(x0,x1,y0+y,y0+y,box1->p,cs) == 2 ) break; num_cross 498 lib/gocr/ocr0.c if( num_cross(j,j,y0,y1,box1->p,cs) == 3 ) i++; num_cross 526 lib/gocr/ocr0.c if( num_cross(j,j,y0,y,box1->p,cs) > 1 ) i=0; num_cross 539 lib/gocr/ocr0.c if ( num_cross(x0,x1,y,y,box1->p,cs) != 1 ) Break; // except "geschwungenem e" num_cross 540 lib/gocr/ocr0.c if ( num_cross(x0,x1-dx/3,y ,y ,box1->p,cs) != 1 num_cross 541 lib/gocr/ocr0.c && num_cross(x0,x1-dx/3,y+1,y+1,box1->p,cs) != 1 ) Break; num_cross 562 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x1 ,y1-dy/4,y1 ,box1->p,cs) == 0 num_cross 563 lib/gocr/ocr0.c && num_cross(x0+dx/2,x1-1,y1-dy/4,y1 ,box1->p,cs) == 0 num_cross 564 lib/gocr/ocr0.c && num_cross(x0+dx/2,x1 ,y1-dy/4,y1-1,box1->p,cs) == 0 ) { num_cross 694 lib/gocr/ocr0.c i= num_cross( 0,dx-1,dy/4,dy/4,sdata->bp,cs); num_cross 695 lib/gocr/ocr0.c j= num_cross( 0,dx-1,dy/2,dy/2,sdata->bp,cs); num_cross 699 lib/gocr/ocr0.c if( num_cross( 0,dx/2,y ,y ,sdata->bp,cs) != 1 num_cross 700 lib/gocr/ocr0.c && num_cross( 0,dx/2,y-1,y-1,sdata->bp,cs) != 1 num_cross 701 lib/gocr/ocr0.c && num_cross(dx/2,dx-1,y ,y ,sdata->bp,cs) < 1 ) Break; // n rr num_cross 707 lib/gocr/ocr0.c if( num_cross(0, dx/2,y ,y ,sdata->bp,cs) == 1 num_cross 708 lib/gocr/ocr0.c && num_cross(dx/2,dx-1,y ,y ,sdata->bp,cs) == 0 ) Break; // ~p num_cross 710 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2-dy/8,dy/2-dy/8,sdata->bp,cs) == 2 num_cross 711 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/2, dy/2 ,sdata->bp,cs) == 2 ) { // n rr num_cross 718 lib/gocr/ocr0.c if( num_cross(dx/2,dx-1,y,y,sdata->bp,cs)==2 ) i=3*dy/8; // \it n num_cross 741 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2, dy/2 ,sdata->bp,cs) != 3 num_cross 742 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/2-dy/8,dy/2-dy/8,sdata->bp,cs) != 3 ) Break; num_cross 746 lib/gocr/ocr0.c if( num_cross(i,i, 0,dy/2-2*dy/8,sdata->bp,cs) != 0 ) Break; num_cross 748 lib/gocr/ocr0.c if( num_cross(i,i,dy/2+1, dy-1,sdata->bp,cs) != 0 ) Break; num_cross 764 lib/gocr/ocr0.c if( num_cross( 0,dx-1,0 ,0 ,sdata->bp,cs) >2 num_cross 765 lib/gocr/ocr0.c || num_cross( 0,dx-1,1 ,1 ,sdata->bp,cs) >2 ) Break; num_cross 778 lib/gocr/ocr0.c if (num_cross( 0,dx-1,dy/4,dy/4,sdata->bp,cs)>=3) ad=98*ad/100; // small M num_cross 783 lib/gocr/ocr0.c if (num_cross(0,dx-1,dy/8,dy/8,sdata->bp,cs)>=2) { num_cross 807 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/2, dy/2,bp,cs)<3 num_cross 808 lib/gocr/ocr0.c && num_cross(0,dx-1, dy/4, dy/4,bp,cs)<3 num_cross 809 lib/gocr/ocr0.c && num_cross(0,dx-1,5*dy/8,5*dy/8,bp,cs)<3 num_cross 810 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs)<3 num_cross 812 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4, dy/4,bp,cs)<2 num_cross 813 lib/gocr/ocr0.c && num_cross(0,dx-1, dy/8, dy/8,bp,cs)<2 ) Break; /* fat M */ num_cross 814 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs)<2 ) Break; num_cross 827 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/2, dy/2,bp,cs)==2 num_cross 828 lib/gocr/ocr0.c && num_cross(0,dx-1, dy/4, dy/4,bp,cs)> 2 num_cross 829 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs)> 2 ) Break; // ~it_u num_cross 830 lib/gocr/ocr0.c if( num_cross(0 ,dx-1,3*dy/4,3*dy/4,bp,cs)==2 num_cross 831 lib/gocr/ocr0.c && num_cross(dx/2,dx/2,3*dy/4, dy-1,bp,cs)> 0 ) Break; // ~it_v num_cross 845 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2,dy/2,bp,cs)!=4 ){ // Is it a N ? num_cross 846 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2,dy/2,bp,cs)==3 ){ num_cross 848 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs)<3 ) break; num_cross 850 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs)==2 ){ num_cross 873 lib/gocr/ocr0.c if( num_cross(i1,dx-1,i2-1,i2-1,bp,cs)!=2 num_cross 874 lib/gocr/ocr0.c || num_cross(0 ,i1 ,i2-1,i2-1,bp,cs)!=2 ) Break; // too hard ??? num_cross 877 lib/gocr/ocr0.c if( num_cross(0,dx-1,0,0,bp,cs)!=2 num_cross 878 lib/gocr/ocr0.c && num_cross(0,dx-1,1,1,bp,cs)!=2 num_cross 879 lib/gocr/ocr0.c && num_cross(0,dx-1,2,2,bp,cs)!=2 ) Break; num_cross 882 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4, dy/4,bp,cs)==4 num_cross 883 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs)==4 ){ num_cross 898 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2,dy/2,bp,cs)==2 num_cross 899 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/4,dy/4,bp,cs)==2 && !hchar ) Break; // ~ \it u num_cross 902 lib/gocr/ocr0.c if( num_cross(0,dx-1, 0, 0,bp,cs)<2 ) ad=99*ad/100; num_cross 904 lib/gocr/ocr0.c if( num_cross(0,dx-1, 1, 1,bp,cs)<2 ) ad=96*ad/100; // kt num_cross 905 lib/gocr/ocr0.c if( num_cross(dx/2,dx/2, 0, dy-1,bp,cs)!=1) ad=98*ad/100; // kt num_cross 908 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4, dy/4,bp,cs)<=2 num_cross 909 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs)<=2 num_cross 913 lib/gocr/ocr0.c if( num_cross(0,dx-1,y ,y ,bp,cs)==1 ) break; num_cross 916 lib/gocr/ocr0.c if( num_cross(2+dx/6,dx-3-dx/6,y-2,y-2,bp,cs)==0 num_cross 917 lib/gocr/ocr0.c || num_cross(2+dx/6,dx-3-dx/6,y-1,y-1,bp,cs)==0 ) Break; // ~H bad! num_cross 1108 lib/gocr/ocr0.c if( num_cross(x0,x1 ,y,y, box1->p,cs) == 2 ) i--; num_cross 1111 lib/gocr/ocr0.c if( num_cross(x0,x0+dx/2,y,y, box1->p,cs) == 1 ) i--; num_cross 1123 lib/gocr/ocr0.c if (i>1 && num_cross(x0,x0,y0+dy/8+2,y0+dy/2, box1->p,cs) == 1 ){ // fi fu num_cross 1125 lib/gocr/ocr0.c if (num_cross(x0,x0,y0,y0+dy/8+2, box1->p,cs) == 0 ) ad=97*ad/100; num_cross 1126 lib/gocr/ocr0.c if (num_cross(x0+dx/2,x0+dx/2,y0,y0+dy/8+2, box1->p,cs) == 1 ) ad=97*ad/100; num_cross 1135 lib/gocr/ocr0.c if( num_cross(x0,x0,y0+(dy+3)/8,y1,box1->p,cs) > 1 ) { num_cross 1146 lib/gocr/ocr0.c if( num_cross(dx-i+1+dx/8,dx-i+1+dx/8,0,1+dy/16,bp,cs) > 0 ) { num_cross 1181 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/4 ,dy/4 ,bp,cs) != 2 num_cross 1182 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/4-1,dy/4-1,bp,cs) != 2 ) Break; num_cross 1183 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/4 ,3*dy/4 ,bp,cs) != 2 num_cross 1184 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/4+1,3*dy/4+1,bp,cs) != 2 ) Break; num_cross 1199 lib/gocr/ocr0.c if( num_cross(0,dx-1,ya ,ya ,bp,cs) != 1 num_cross 1200 lib/gocr/ocr0.c && num_cross(0,dx-1,ya+1,ya+1,bp,cs) != 1 ) Break; /* Dec00 */ num_cross 1202 lib/gocr/ocr0.c if( num_cross(0,dx-1,y ,y ,bp,cs) > 2 num_cross 1203 lib/gocr/ocr0.c && num_cross(0,dx-1,y+1,y+1,bp,cs) > 2 ) break; num_cross 1212 lib/gocr/ocr0.c if( num_cross(x,x,y0+dy/8,y1-dy/8, box1->p,cs) == 1 ) i=0; num_cross 1215 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 2 ) i=0; num_cross 1218 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 2 ) i=0; num_cross 1227 lib/gocr/ocr0.c if( num_cross(x0,x1,y0,y1, box1->p,cs) < 2 ) Break; // sure N num_cross 1306 lib/gocr/ocr0.c if( num_cross(0, dx-1,0,0,bp,cs) != 1 num_cross 1307 lib/gocr/ocr0.c && num_cross(0, dx-1,1,1,bp,cs) != 1 ) Break; num_cross 1308 lib/gocr/ocr0.c if( num_cross(0,3*dx/4, dy/8 , dy/8 ,bp,cs) != 1 num_cross 1309 lib/gocr/ocr0.c || num_cross(0,3*dx/4,3*dy/16,3*dy/16,bp,cs) != 1 ) Break; num_cross 1310 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1,dy-1,bp,cs) != 2 num_cross 1311 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs) != 2 ) Break; num_cross 1313 lib/gocr/ocr0.c && num_cross(dx-1,dx-1,dy/4,dy-1,bp,cs) != 2 num_cross 1314 lib/gocr/ocr0.c && num_cross(dx-2,dx-2,dy/4,dy-1,bp,cs) != 2 ) Break; num_cross 1346 lib/gocr/ocr0.c for(y=y0+dy/3;y<y1;y++) if( num_cross(x0,x1,y,y,box1->p,cs)==2 ) break; num_cross 1404 lib/gocr/ocr0.c if( num_cross(x,x,y0,y1, box1->p,cs) == 2 ) i=0; num_cross 1407 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 2 ) i=0; num_cross 1411 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 1 ) i=0; num_cross 1415 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 2 ) i=0; num_cross 1565 lib/gocr/ocr0.c && num_cross(0,dx-1,y ,y ,bp,cs) != 1 num_cross 1566 lib/gocr/ocr0.c && num_cross(0,dx-1,y+1,y+1,bp,cs) != 1 // against noise num_cross 1572 lib/gocr/ocr0.c && num_cross( 0, (dx+1)/2,i,i,bp,cs) > 0 num_cross 1573 lib/gocr/ocr0.c && num_cross((dx+1)/2,dx-1,i,i,bp,cs) > 0 ) Break; // ~Y num_cross 1578 lib/gocr/ocr0.c if (num_cross(0,dx-1,i,i,bp,cs)!=1) Break; num_cross 1620 lib/gocr/ocr0.c if( num_cross(0,dx-1,0,0,bp,cs)==1 && hchar) //~r num_cross 1621 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1,dy-1,bp,cs)!=1 num_cross 1622 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs)!=1 ) Break; // ~* etc. num_cross 1625 lib/gocr/ocr0.c if( num_cross(0,dx-1,y ,y ,bp,cs) ==2 ) j=0; num_cross 1653 lib/gocr/ocr0.c && num_cross(x1-dx/4,x1-dx/4,y0,y1,box1->p,cs)!=2 num_cross 1654 lib/gocr/ocr0.c && num_cross(x1-dx/8,x1-dx/8,y0,y1,box1->p,cs)!=2 ) Break; // ~r num_cross 1657 lib/gocr/ocr0.c if( num_cross(x0,x1,y1-dy/4,y1-dy/4,box1->p,cs)>1 num_cross 1658 lib/gocr/ocr0.c && num_cross(x0,x1,y0+dy/4,y0+dy/4,box1->p,cs)>1 ) Break; // ~H num_cross 1716 lib/gocr/ocr0.c if( num_cross(x0+dx/2, x0+dx/2,y0,y1 ,box1->p,cs) != 3 ) num_cross 1717 lib/gocr/ocr0.c if( num_cross(x1-dx/3, x1-dx/3,y0,y1 ,box1->p,cs) != 3 ) Break; num_cross 1723 lib/gocr/ocr0.c if( num_cross(0,dx-1,y-y0 ,y-y0 ,bp,cs) != 2 ) num_cross 1724 lib/gocr/ocr0.c if( num_cross(0,dx-1,y-y0+1,y-y0+1,bp,cs) != 2 ) Break; num_cross 1725 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4 , dy/4 ,bp,cs) != 2 ) num_cross 1726 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4+1, dy/4+1,bp,cs) != 2 ) num_cross 1727 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4-1, dy/4-1,bp,cs) != 2 ) Break; num_cross 1728 lib/gocr/ocr0.c for( y=dy/4;y<3*dy/4;y++ ) if( num_cross(0,dx-1,y,y,bp,cs)==1 ) break; num_cross 1800 lib/gocr/ocr0.c if( num_cross(x0,x1,y0+dy/4 ,y0+dy/4 ,box1->p,cs) > 1 ) // & num_cross 1801 lib/gocr/ocr0.c if( num_cross(x0,x1,y0+dy/4-1,y0+dy/4-1,box1->p,cs) > 1 ) num_cross 1803 lib/gocr/ocr0.c num_cross(x0,x1,y0+dy/5 ,y0+dy/5 ,box1->p,cs) > 1 ) Break; // fat b num_cross 1805 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) == 2 ) i++; else j++; num_cross 1840 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2,y0 ,y1 ,box1->p,cs) != 2 ) num_cross 1841 lib/gocr/ocr0.c if( num_cross(x1-dx/3,x1-dx/3,y0 ,y1 ,box1->p,cs) != 2 ) Break; num_cross 1842 lib/gocr/ocr0.c if( num_cross(x0 ,x1 ,y0+dy/3,y0+dy/3,box1->p,cs) != 2 ) Break; num_cross 1843 lib/gocr/ocr0.c if( num_cross(x0 ,x1 ,y1-dy/3,y1-dy/3,box1->p,cs) != 2 ) Break; num_cross 1914 lib/gocr/ocr0.c if( num_cross(x ,x ,0 ,dy-1, bp,cs) == 2 ) i--; num_cross 1917 lib/gocr/ocr0.c if( num_cross(0 ,dx-1,y ,y , bp,cs) == 2 ) i--; num_cross 1918 lib/gocr/ocr0.c if( num_cross(0 ,dx-1,y ,y , bp,cs) > 3 ) i++; // ~al num_cross 1921 lib/gocr/ocr0.c if( num_cross(0 ,dx-1,y ,y , bp,cs) == 1 ) num_cross 1922 lib/gocr/ocr0.c if( num_cross(dx/2,dx-1,y ,y , bp,cs) == 1 ) i--; num_cross 1931 lib/gocr/ocr0.c if( num_cross(0 ,dx-1,dy-1-dy/4,dy-1-dy/4,bp,cs) != 2 ) { // glued al num_cross 2006 lib/gocr/ocr0.c if( num_cross(x,x,0,dy-2,bp,cs) == 2 ) i++; num_cross 2034 lib/gocr/ocr0.c if ( num_cross(2*dx/3,2*dx/3,0,dy-1,bp,cs) < 2 ) ad=90*ad/100; // ~r num_cross 2058 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y,box1->p,cs) < 2 ) break; num_cross 2069 lib/gocr/ocr0.c j=num_cross(0,dx/2-((y>dy/2)?dx/8:0),y,y,bp,cs); num_cross 2070 lib/gocr/ocr0.c if( y<dy/2 && num_cross(dx/2,dx-1,y,y,bp,cs)>1 ) i--; // ~{\it v} num_cross 2075 lib/gocr/ocr0.c j=num_cross(dx-dx/2,dx-1,y,y,bp,cs); num_cross 2089 lib/gocr/ocr0.c if( num_cross(0 ,dx/2, dy/4, dy/4,bp,cs)==2 num_cross 2090 lib/gocr/ocr0.c && num_cross(dx-dx/2,dx-1,dy-dy/4,dy-dy/4,bp,cs)==1 ) Break; // ~{\it v} num_cross 2111 lib/gocr/ocr0.c if ( num_cross(0,dx-1,dy/2,dy/2,bp,cs)!=2 ) ad=96*ad/100; // w num_cross 2140 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y,box1->p,cs) < 2 ) break; num_cross 2153 lib/gocr/ocr0.c j=num_cross(0,dx/2,y,y,bp,cs); num_cross 2154 lib/gocr/ocr0.c if( y<dy/2 && num_cross(dx/2,dx-1,y,y,bp,cs)>1 ) i--; // ~{\it v} num_cross 2159 lib/gocr/ocr0.c j=num_cross(dx-dx/2,dx-1,y,y,bp,cs); num_cross 2169 lib/gocr/ocr0.c if( num_cross(0 ,dx/2, dy/4, dy/4,bp,cs)!=1 ) break; num_cross 2170 lib/gocr/ocr0.c if( num_cross(dx-dx/2,dx-1,dy-dy/2,dy-dy/2,bp,cs)!=1 ) break; num_cross 2172 lib/gocr/ocr0.c if( num_cross(0,dx/4,dy-1,dy-1,bp,cs)!=1 ) break; num_cross 2203 lib/gocr/ocr0.c if(((num_cross( 0,dx/2+1,dy/ 8,dy/ 8,bp,cs)!=1) num_cross 2204 lib/gocr/ocr0.c && (num_cross( 0,dx/2+1,dy/16,dy/16,bp,cs)!=1) // it v num_cross 2205 lib/gocr/ocr0.c && (num_cross(dx/2+1,dx -1,dy/ 8,dy/ 8,bp,cs)!=1)) /* () added on Sep00 */ num_cross 2206 lib/gocr/ocr0.c || ((num_cross( 0,dx-1,dy-1-dy/8,dy-1-dy/8,bp,cs)> 1) num_cross 2207 lib/gocr/ocr0.c && (num_cross( 0,dx-1,dy-1 ,dy-1 ,bp,cs)> 1)) ) Break; num_cross 2225 lib/gocr/ocr0.c if( num_cross(0 ,dx/2, dy/4, dy/4,bp,cs)==2 num_cross 2226 lib/gocr/ocr0.c && num_cross(dx-dx/2,dx-1,dy-dy/4,dy-dy/4,bp,cs)==2 ) Break; // ~{\it u} num_cross 2253 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1-dy/4,dy-1-dy/4,bp,cs)==1 ){ num_cross 2300 lib/gocr/ocr0.c if( y<dy-2*dy/8 && num_cross(0,dx-1,y,y,bp,cs) !=1 ) break; num_cross 2328 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2, dy/2 ,bp,cs)!=1 num_cross 2329 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/2+1,dy/2+1,bp,cs)!=1 ) Break; // ~n 024a3 num_cross 2333 lib/gocr/ocr0.c if( num_cross(0,dx-1,y, y ,bp,cs)==2 num_cross 2334 lib/gocr/ocr0.c && num_cross(0,dx-1,y+1+dy/32,y+1+dy/32,bp,cs)==2 ) break; // ~t num_cross 2337 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1,0,3*dy/4,bp,cs)>1 ) ad=95*ad/100; // ~f num_cross 2338 lib/gocr/ocr0.c if( num_cross(dx/2 ,dx/2 ,0,dy-1,bp,cs)>2 num_cross 2339 lib/gocr/ocr0.c && num_cross(dx/2+1,dx/2+1,0,dy-1,bp,cs)>2 ) Break; // ~f num_cross 2351 lib/gocr/ocr0.c if( num_cross(x0,x1,y1-dy/8,y1-dy/8, box1->p,cs) < 2 ) Break; // ~P num_cross 2370 lib/gocr/ocr0.c if( num_cross(x,x,y0,y1, box1->p,cs) == 2 ) i=0; num_cross 2373 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 2 ) i=0; num_cross 2376 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 1 ) i=0; num_cross 2379 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 2 ) i=0; num_cross 2436 lib/gocr/ocr0.c i=num_cross(0,dx-1,y ,y ,bp,cs); if (i!=3) num_cross 2437 lib/gocr/ocr0.c i=num_cross(0,dx-1,y+1,y+1,bp,cs); num_cross 2442 lib/gocr/ocr0.c i=num_cross(0,dx-1,y,y,bp,cs); if (i>2) break; num_cross 2445 lib/gocr/ocr0.c i=num_cross(0,dx-1,y,y,bp,cs); if (i!=3) break; num_cross 2573 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy-1, dy-1,bp,cs) != 1 num_cross 2574 lib/gocr/ocr0.c && num_cross(0,dx-1, dy-2, dy-2,bp,cs) != 1 ) Break; num_cross 2575 lib/gocr/ocr0.c if( num_cross(0,dx-1,2*dy/3,2*dy/3,bp,cs) != 1 num_cross 2576 lib/gocr/ocr0.c && num_cross(0,dx-1,2*dy/3,2*dy/3,bp,cs) != 1 ) Break; num_cross 2600 lib/gocr/ocr0.c i=num_cross(0,dx-1,y ,y ,bp,cs); num_cross 2601 lib/gocr/ocr0.c j=num_cross(0,dx-1,y+1,y+1,bp,cs); if (i>2 && j>2) break; num_cross 2603 lib/gocr/ocr0.c && num_cross(0,dx-1,y ,y ,bp,cs) != 1 num_cross 2604 lib/gocr/ocr0.c && ( num_cross(0,dx-1,y+dy/8,y+dy/8,bp,cs) != 1 || dy<13) // against noise num_cross 2617 lib/gocr/ocr0.c if( num_cross(0,dx-1,y ,y ,bp,cs) == 2 num_cross 2618 lib/gocr/ocr0.c && num_cross(0,dx-1,y+1,y+1,bp,cs) == 2 ) break; num_cross 2648 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-2,dy-2,bp,cs) == 2 num_cross 2649 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-1,dy-1,bp,cs) == 2 ) Break; // ~* (5er) num_cross 2672 lib/gocr/ocr0.c if( num_cross( 0,dx-1,2*dy/3,2*dy/3,bp,cs) > 1 num_cross 2673 lib/gocr/ocr0.c && num_cross( 0,dx/2,2*dy/3,2*dy/3,bp,cs) > 0 num_cross 2674 lib/gocr/ocr0.c && num_cross(dx/2,dx-1,2*dy/3,2*dy/3,bp,cs) > 0 ) num_cross 2679 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/4, 3*dy/4, bp,cs) >= 2 num_cross 2680 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/4-1,3*dy/4-1,bp,cs) >= 2 ){ num_cross 2725 lib/gocr/ocr0.c if( num_cross( dx/2, dx/2,0,dy-1,bp,cs)!=3 num_cross 2726 lib/gocr/ocr0.c && num_cross(5*dx/8,3*dx/8,0,dy-1,bp,cs)!=3 num_cross 2728 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2 ,dy/2 ,bp,cs)!=1 num_cross 2729 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/2-1,dy/2-1,bp,cs)!=1 ) Break; num_cross 2786 lib/gocr/ocr0.c if( num_cross( 0,dx-1,y ,y ,bp,cs)==2 ) num_cross 2787 lib/gocr/ocr0.c if( num_cross( 0,dx-1,y+1,y+1,bp,cs)==1 ) num_cross 2788 lib/gocr/ocr0.c if( num_cross( 0,dx/4,y,y,bp,cs)==1 ) break; // ~5 num_cross 2825 lib/gocr/ocr0.c if( num_cross(x0+dx/2, x0+dx/2, y0, y1, box1->p,cs) < 3 ) num_cross 2826 lib/gocr/ocr0.c if( num_cross(x1-dx/2, x1-dx/2, y0, y1, box1->p,cs) < 3 ) Break; num_cross 2832 lib/gocr/ocr0.c for(y=dy/4;y<dy;y++) if( num_cross(0,dx-1,y,y,bp,cs)==2 ) break; num_cross 2838 lib/gocr/ocr0.c if (num_cross(x1, x1, (y0+y1)/2, y1, box1->p,cs)>1) { num_cross 2840 lib/gocr/ocr0.c if (num_cross(x1 , x1 , y0, (y0+y1)/2, box1->p,cs)<1 ) ad=96*ad/100; num_cross 2841 lib/gocr/ocr0.c if (num_cross(x1-1, x1-1, y0, (y0+y1)/2, box1->p,cs)<1 ) ad=95*ad/100; num_cross 2849 lib/gocr/ocr0.c if( num_cross(x0,x1 ,y0+dy/4,y0+dy/4,box1->p,cs) > 2 num_cross 2850 lib/gocr/ocr0.c || num_cross(x0,x1 ,y0+dy/8,y0+dy/8,box1->p,cs) > 2) ad=90*ad/100; num_cross 2851 lib/gocr/ocr0.c if( num_cross(x0,x1+dx/4,y1-dy/4,y1-dy/4,box1->p,cs) > 2 num_cross 2852 lib/gocr/ocr0.c || num_cross(x0,x1+dx/4,y1-dy/8,y1-dy/8,box1->p,cs) > 2) ad=90*ad/100; num_cross 2854 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2,dy/2,bp,cs) >2 ) ad=99*ad/100; // ~/o num_cross 2880 lib/gocr/ocr0.c if( num_cross(x0+dx/2 , x0+dx/2 , y0, y, box1->p,cs) != 1 num_cross 2881 lib/gocr/ocr0.c || num_cross(x0+dx/2+1, x0+dx/2+1, y0, y, box1->p,cs) != 1 ) Break; // ~e num_cross 2914 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) == 2 ) i=0; num_cross 2917 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1-y,dy-1-y,bp,cs) == 2 ) i=0; num_cross 2921 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) == 2 ) i=0; num_cross 2959 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2,y0,y1,box1->p,cs) != 3 // pre select num_cross 2960 lib/gocr/ocr0.c && num_cross(x0+dx/4,x1-dx/4,y0,y1,box1->p,cs) != 3 ) Break; num_cross 2968 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x1,i ,y1,box1->p,cs) != 1 num_cross 2969 lib/gocr/ocr0.c && num_cross(x0+dx/2,x1,i+1,y1,box1->p,cs) != 1 ) Break; num_cross 2992 lib/gocr/ocr0.c if( num_cross(x0,x1 ,y0+dy/4,y0+dy/4,box1->p,cs) > 2) ad=90*ad/100; num_cross 2993 lib/gocr/ocr0.c if( num_cross(x0,x1+dx/4,y1-dy/4,y1-dy/4,box1->p,cs) > 2 num_cross 2994 lib/gocr/ocr0.c || num_cross(x0,x1+dx/4,y1-dy/8,y1-dy/8,box1->p,cs) > 2) ad=90*ad/100; num_cross 3141 lib/gocr/ocr0.c if( num_cross(x0+dx/4,x1-dx/4,y0+dy/2,y0+dy/2, box1->p,cs) != 1 ) Break; num_cross 3142 lib/gocr/ocr0.c if( num_cross(x0,x1,y0+dy/4,y0+dy/4, box1->p,cs) != 3 num_cross 3143 lib/gocr/ocr0.c && num_cross(x0,x1,y0+dy/8,y0+dy/8, box1->p,cs) < 3 ) Break; num_cross 3144 lib/gocr/ocr0.c if( num_cross(x0,x1,y1-dy/4,y1-dy/4, box1->p,cs) != 3 num_cross 3145 lib/gocr/ocr0.c && num_cross(x0,x1,y1-dy/8,y1-dy/8, box1->p,cs) < 3 ) Break; num_cross 3170 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/8,dy/8,bp,cs) < 2 num_cross 3171 lib/gocr/ocr0.c && num_cross(0,dx-1, 1, 1,bp,cs) < 2 ) Break; num_cross 3172 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1,dy-1,bp,cs) != 1 num_cross 3173 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs) != 1 ) Break; num_cross 3174 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1,0,dy-1,bp,cs) != 1 num_cross 3175 lib/gocr/ocr0.c && num_cross(dx-2,dx-2,0,dy-1,bp,cs) != 1 ) Break; num_cross 3176 lib/gocr/ocr0.c if( num_cross(dx/3,dx/3,dy/4,dy-1,bp,cs) != 2 num_cross 3177 lib/gocr/ocr0.c && num_cross(dx/2,dx/2,dy/4,dy-1,bp,cs) != 2 ) Break; num_cross 3184 lib/gocr/ocr0.c if( num_cross(xc,dx-1,y,y,bp,cs) != 1 ) break; num_cross 3185 lib/gocr/ocr0.c if( num_cross(0 ,xc ,y,y,bp,cs) < 1 ) break; num_cross 3216 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/8,dy/8,bp,cs) != 2 num_cross 3217 lib/gocr/ocr0.c && num_cross(0,dx-1, 1, 1,bp,cs) != 2 ) Break; num_cross 3218 lib/gocr/ocr0.c if( num_cross(dx/2,dx/2,0, 1,bp,cs) != 0 ) Break; num_cross 3219 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1,dy-1,bp,cs) != 1 num_cross 3220 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs) != 1 ) Break; num_cross 3221 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1,0,dy-1,bp,cs) != 1 num_cross 3222 lib/gocr/ocr0.c && num_cross(dx-2,dx-2,0,dy-1,bp,cs) != 1 num_cross 3223 lib/gocr/ocr0.c && num_cross(dx-dx/8-1,dx-dx/8-1,0,dy-1,bp,cs) != 1 ) Break; num_cross 3235 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) < 2 ) break; num_cross 3439 lib/gocr/ocr0.c for(y=dy/8;y< dy/2;y++) if( num_cross(0,dx-1,y,y,bp,cs)< 2 ) break; num_cross 3444 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs)==2 ) break; num_cross 3450 lib/gocr/ocr0.c for(i=j=0 ;y> dy/4;y--) if( num_cross(0,dx-1,y,y,bp,cs)==4 ) i++; num_cross 3451 lib/gocr/ocr0.c else if( num_cross(0,dx-1,y,y,bp,cs)>=3 ) j++; num_cross 3464 lib/gocr/ocr0.c if( num_cross(0,dx-1, 1, 1,bp,cs)< 2 num_cross 3465 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/16,dy/16,bp,cs)< 2 ) Break; num_cross 3476 lib/gocr/ocr0.c if( num_cross(0 ,xc ,ya-y ,ya-y ,bp,cs)!= 2 num_cross 3477 lib/gocr/ocr0.c && num_cross(0 ,xc ,ya-y/2,ya-y/2,bp,cs)!= 2 ) Break; num_cross 3478 lib/gocr/ocr0.c if( num_cross(xc,dx-1,ya-y ,ya-y ,bp,cs)!= 2 num_cross 3479 lib/gocr/ocr0.c && num_cross(xc,dx-1,ya-y/2,ya-y/2,bp,cs)!= 2 ) Break; num_cross 3526 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2,dy/2,bp,cs)<2 ) Break; num_cross 3527 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/8,dy/8,bp,cs)<2 ) handwritten=40; num_cross 3528 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/4,dy/4,bp,cs)<2 ) handwritten=80; num_cross 3530 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs)==3 ) i++; num_cross 3536 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs)==3 ) break; num_cross 3544 lib/gocr/ocr0.c if( num_cross(xb,xd,yb,yb ,bp,cs)!= 1 ) Break; num_cross 3545 lib/gocr/ocr0.c if( num_cross(xb,xb,yb,dy-1,bp,cs)!= 1 ) Break; num_cross 3546 lib/gocr/ocr0.c if( num_cross(xd,xd,yb,dy-1,bp,cs)!= 1 ) Break; num_cross 3547 lib/gocr/ocr0.c if( num_cross(xb,xb, 0,yb ,bp,cs)!= 0 ) Break; num_cross 3548 lib/gocr/ocr0.c if( num_cross(xd,xd, 0,yb ,bp,cs)!= 0 ) Break; num_cross 3581 lib/gocr/ocr0.c if (num_cross(0,dx-1,ya,ya,bp,cs)==0) break; num_cross 3583 lib/gocr/ocr0.c if( num_cross(0,dx-1,ya+ 1 ,ya+ 1 ,bp,cs)!=1 // 600dpi num_cross 3584 lib/gocr/ocr0.c && num_cross(0,dx-1,ya+ dy/8 ,ya+ dy/8 ,bp,cs)!=1 num_cross 3585 lib/gocr/ocr0.c && num_cross(0,dx-1,ya+ dy/16 ,ya+ dy/16 ,bp,cs)!=1 num_cross 3586 lib/gocr/ocr0.c && num_cross(0,dx-1,ya+ dy/8+1,ya+ dy/8+1,bp,cs)!=1 ) Break; num_cross 3587 lib/gocr/ocr0.c if( num_cross(0,dx-1, 7*dy/8 , 7*dy/8 ,bp,cs)!=2 num_cross 3588 lib/gocr/ocr0.c && num_cross(0,dx-1, 7*dy/8-1, 7*dy/8-1,bp,cs)!=2 ) Break; num_cross 3589 lib/gocr/ocr0.c if ( num_cross( 0,dx/8,ya+dy/8,ya+0,bp,cs)>0 ) Break; // ~R num_cross 3590 lib/gocr/ocr0.c for(y=ya+dy/8;y<ya+dy/2;y++) if( num_cross(0,dx-1,y,y,bp,cs) > 1 ) break; num_cross 3609 lib/gocr/ocr0.c i4=num_cross(i2,x,y ,dy-1,bp,cs);if(i4<1 || i4>2) num_cross 3610 lib/gocr/ocr0.c i4=num_cross(i2,x,y+dy/16,dy-1,bp,cs);if(i4<1 || i4>2) break; num_cross 3660 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/4 ,dy/4 , bp,cs) >2 // ~glued am != an num_cross 3661 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/4+1,dy/4+1, bp,cs) >2 ) Break; num_cross 3669 lib/gocr/ocr0.c if( num_cross(x,x,0,bp->y-1, bp,cs) == 3 ) i--; num_cross 3693 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y, bp,cs) !=2 ) break; num_cross 3723 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1 ,box1->p,cs) != 2 ) Break; num_cross 3724 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/3,y0 , y0 ,box1->p,cs) != 1 ) // AND num_cross 3725 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/3,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; num_cross 3730 lib/gocr/ocr0.c if( num_cross(x0+dx/2-1,x1,y1 ,y1 ,box1->p,cs) < 2 /* 4x6font */ num_cross 3731 lib/gocr/ocr0.c && num_cross(x0+dx/2-1,x1,y1-i,y1-i ,box1->p,cs) < 2 /* 2 or 3 */ num_cross 3732 lib/gocr/ocr0.c && num_cross(x0+dx/2-1,x1,y1-y,y1-y ,box1->p,cs) < 2 ) num_cross 3737 lib/gocr/ocr0.c if( num_cross(x0,x1,y0+dy/2 , y0+dy/2,box1->p,cs) < 2 num_cross 3738 lib/gocr/ocr0.c || num_cross(x0,x1,y0+dy/3 , y0+dy/3,box1->p,cs) < 2 ) Break; // Jun00 num_cross 3740 lib/gocr/ocr0.c if( num_cross(x0 ,x0 ,y0+dy/3 , y1-dy/4,box1->p,cs) != 1 ) num_cross 3741 lib/gocr/ocr0.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/4,box1->p,cs) != 1 ) Break; num_cross 3762 lib/gocr/ocr0.c if( num_cross(x0 , x1, y1, y1,box1->p,cs) == 1 ) num_cross 3763 lib/gocr/ocr0.c if( num_cross(x0 , x1, y0, y0,box1->p,cs) == 1 ) num_cross 3781 lib/gocr/ocr0.c if( num_cross(0,dx-1, 1 , 1 ,bp,cs)!=1 // 600dpi num_cross 3782 lib/gocr/ocr0.c && num_cross(0,dx-1, dy/8 , dy/8 ,bp,cs)!=1 num_cross 3783 lib/gocr/ocr0.c && num_cross(0,dx-1, dy/16 , dy/16 ,bp,cs)!=1 num_cross 3784 lib/gocr/ocr0.c && num_cross(0,dx-1, dy/8+1, dy/8+1,bp,cs)!=1 ) break; num_cross 3785 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy-1 , dy-1 ,bp,cs)!=1 ) break; num_cross 3786 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4 , dy/4 ,bp,cs)!=2 num_cross 3787 lib/gocr/ocr0.c && num_cross(0,dx-1, dy/3 , dy/3 ,bp,cs)!=2 ) break; num_cross 3788 lib/gocr/ocr0.c if ( num_cross( 0,dx/8,dy/8, 0,bp,cs)>0 ) break; // ~R num_cross 3789 lib/gocr/ocr0.c for(y=dy/8;y<dy/2;y++) if( num_cross(0,dx-1,y,y,bp,cs) > 1 ) break; num_cross 3806 lib/gocr/ocr0.c i4=num_cross(i2,x,y ,dy-1,bp,cs);if(i4<1 || i4>2) num_cross 3807 lib/gocr/ocr0.c i4=num_cross(i2,x,y+dy/16,dy-1,bp,cs);if(i4<1 || i4>2) break; num_cross 3816 lib/gocr/ocr0.c if ( num_cross( 0,dx/8,dy/6, 0,bp,cs)>0 ) break; num_cross 3817 lib/gocr/ocr0.c if ( num_cross(dx-1-dx/4,dx-1, 0,dy/6,bp,cs)>0 ) break; num_cross 3860 lib/gocr/ocr0.c if( num_cross(x0,(x0+x1)/2,(y0+y1)/2,(y0+y1)/2,box1->p,cs) > 1 ) Break; // ~ocr-a-[ num_cross 3884 lib/gocr/ocr0.c if( num_cross(x1-dx/4,x1-dx/4,i2,y0,box1->p,cs) < 1 ) Break; // ~L num_cross 3886 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x1,i3 ,y1,box1->p,cs) < 1 num_cross 3887 lib/gocr/ocr0.c && num_cross(x0+dx/2,x1,y1-dy/4,y1,box1->p,cs) < 1 ) Break; // ~r num_cross 3916 lib/gocr/ocr0.c if( num_cross(x ,x ,1,dy/2,bp,cs) > 1 num_cross 3917 lib/gocr/ocr0.c || num_cross(x+1,x+1,1,dy/2,bp,cs) > 1 ) num_cross 3918 lib/gocr/ocr0.c if( num_cross(i-1,i-1,1,dy/2,bp,cs) > 1 num_cross 3919 lib/gocr/ocr0.c || num_cross(i ,i ,1,dy/2,bp,cs) > 1 ) Break; // ~bad e num_cross 3926 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/4,dy/4,bp,cs) < 2 ) Break; num_cross 4023 lib/gocr/ocr0.c if( num_cross(0, dx-1-dx/8, dy-1-dy/2, dy-1-dy/2,bp,cs) != 1 ) Break; num_cross 4024 lib/gocr/ocr0.c if( num_cross(0, dx-1 , dy/3 , dy/3,bp,cs) != 1 ) Break; num_cross 4025 lib/gocr/ocr0.c if( num_cross(0, dx-1 , dy/8 , dy/8,bp,cs) != 1 ) Break; num_cross 4045 lib/gocr/ocr0.c if( num_cross(0, dx-1,dy/2,dy/2,bp,cs) != 1 num_cross 4046 lib/gocr/ocr0.c || num_cross(0, dx-1,dy/4,dy/4,bp,cs) != 1 ) Break; num_cross 4080 lib/gocr/ocr0.c if( num_cross(0,dx-1,y ,y ,bp,cs)==2 num_cross 4081 lib/gocr/ocr0.c && num_cross(0,dx-1,y+1+dy/32,y+1+dy/32,bp,cs)==2 ) j=1; num_cross 4085 lib/gocr/ocr0.c if( num_cross(0,dx-1,y ,y ,bp,cs)==2 num_cross 4086 lib/gocr/ocr0.c && num_cross(0,dx-1,y-1-dy/32,y-1-dy/32,bp,cs)==2 ) break; num_cross 4106 lib/gocr/ocr0.c if( num_cross(0, dx-1, y , y ,bp,cs) != 1 // sure ? num_cross 4107 lib/gocr/ocr0.c && num_cross(0, dx-1, y-1, y-1,bp,cs) != 1 ) break; num_cross 4139 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) == 2 ) break; num_cross 4144 lib/gocr/ocr0.c if( num_cross(0,i,5*dy/8,5*dy/8,bp,cs)==0 num_cross 4145 lib/gocr/ocr0.c && num_cross(i,i,5*dy/8, y,bp,cs)==0 ) Break; // ~J num_cross 4189 lib/gocr/ocr0.c if( num_cross(0,dx/2,y-1,y-1,bp,cs)==2 ) Break; // ~1 num_cross 4312 lib/gocr/ocr0.c if( num_cross(x0+dx/2 ,x0+dx/2 ,y0, y1 ,box1->p,cs) != 2 num_cross 4313 lib/gocr/ocr0.c && num_cross(x0+dx/2+1,x0+dx/2+1,y0, y1 ,box1->p,cs) != 2 ) Break; num_cross 4314 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/4,y0 , y0 ,box1->p,cs) != 1 ) // AND num_cross 4315 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/4,y0+1 , y0+1,box1->p,cs) != 1 ) Break; num_cross 4316 lib/gocr/ocr0.c if( num_cross(x0+dx/4,x1-dx/3,y1 , y1 ,box1->p,cs) != 1 ) // against "rauschen" num_cross 4317 lib/gocr/ocr0.c if( num_cross(x0+dx/4,x1-dx/3,y1-1 , y1-1,box1->p,cs) != 1 ) Break; num_cross 4318 lib/gocr/ocr0.c if( num_cross(x0 ,x0 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 4319 lib/gocr/ocr0.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 4320 lib/gocr/ocr0.c if( num_cross(x1 ,x1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 4321 lib/gocr/ocr0.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 4358 lib/gocr/ocr0.c if( num_cross(j,dx-1,y,y,bp,cs) > 1 ) ad=99*ad/100; // ~a \it a num_cross 4360 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) ad=98*ad/100; // ~a \it a num_cross 4372 lib/gocr/ocr0.c || num_cross(0,dx-1, 0, 0,bp,cs) > 1 num_cross 4373 lib/gocr/ocr0.c || num_cross(0,dx-1,dy-1,dy-1,bp,cs) > 1 num_cross 4406 lib/gocr/ocr0.c if( num_cross(x1-3*i/4,x1-3*i/4, y0, y1-3*dy/16,box1->p,cs) != 2 ) num_cross 4407 lib/gocr/ocr0.c if( num_cross(x0+dx/2 ,x0+dx/2 , y0, y1-3*dy/16,box1->p,cs) != 2 ) num_cross 4408 lib/gocr/ocr0.c if( num_cross(x0+dx/2+1,x0+dx/2+1, y0, y1-3*dy/16,box1->p,cs) != 2 ) Break; num_cross 4409 lib/gocr/ocr0.c if( num_cross(0,dx-1,7*dy/8 ,7*dy/8 ,bp,cs) != 1 ) num_cross 4410 lib/gocr/ocr0.c if( num_cross(0,dx-1,7*dy/8-1,7*dy/8-1,bp,cs) != 1 ) Break; num_cross 4411 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4 , dy/4 ,bp,cs) != 2 ) num_cross 4412 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4-1, dy/4-1,bp,cs) != 3 ) // \it p with nice kurve num_cross 4413 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4 , dy/4 ,bp,cs) != 2 ) num_cross 4414 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4+1, dy/4+1,bp,cs) != 2 ) Break; num_cross 4417 lib/gocr/ocr0.c if( num_cross(i-1,dx-1, dy/4 , dy/4 ,bp,cs) != 2 ) num_cross 4418 lib/gocr/ocr0.c if( num_cross(i-1,dx-1, dy/4+1, dy/4+1,bp,cs) != 2 ) Break; num_cross 4480 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1 ,box1->p,cs) < 2 ) Break; num_cross 4481 lib/gocr/ocr0.c if( num_cross(x0+dx/5,x1-dx/5,y0 , y0 ,box1->p,cs) != 1 ) // AND num_cross 4482 lib/gocr/ocr0.c if( num_cross(x0+dx/5,x1-dx/5,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; num_cross 4483 lib/gocr/ocr0.c if( num_cross(x0 ,x0 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 4484 lib/gocr/ocr0.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 4486 lib/gocr/ocr0.c if( num_cross(x1 ,x1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 4487 lib/gocr/ocr0.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 4530 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) i++; if(i>dy/8) Break; // ~a \it a num_cross 4551 lib/gocr/ocr0.c if( num_cross(x0,x1, y, y,box1->p,cs) == 2 ) Break; num_cross 4554 lib/gocr/ocr0.c if( num_cross(x0, x1, y, y,box1->p,cs) == 1 num_cross 4555 lib/gocr/ocr0.c && num_cross(x0,x0+dx/2, y, y,box1->p,cs) == 0 ) Break; num_cross 4563 lib/gocr/ocr0.c if( num_cross(x0+x/2,x0+x/2, j, y1,box1->p,cs) != 0 ) ad=96*ad/100; // ~g num_cross 4576 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2, y0, j ,box1->p,cs) != 2 ) Break; num_cross 4663 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) Break; num_cross 4664 lib/gocr/ocr0.c for(;y<=y1-y0;y++){ if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) break; } yc=y; num_cross 4665 lib/gocr/ocr0.c for(;y<=y1-y0;y++){ if( num_cross(0,dx-1,y,y,bp,cs) != 2 ) break; } yd=y; num_cross 4668 lib/gocr/ocr0.c for(;y>0;y--){ if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) break; } ye=y; num_cross 4669 lib/gocr/ocr0.c for(;y>0;y--){ if( num_cross(0,dx-1,y,y,bp,cs) != 2 ) break; } yf=y; num_cross 4710 lib/gocr/ocr0.c if( dx>5 && num_cross(x0+dx/2,x0+dx/2, ya, y1 ,box1->p,cs) >= 3 ) num_cross 4742 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) >2 ) Break; num_cross 4743 lib/gocr/ocr0.c for(;y<=y1-y0;y++){ if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) break; } yc=y; num_cross 4744 lib/gocr/ocr0.c for(;y<=y1-y0;y++){ if( num_cross(0,dx-1,y,y,bp,cs) != 2 ) break; } yd=y; num_cross 4747 lib/gocr/ocr0.c for(;y>0;y--){ if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) break; } ye=y; num_cross 4748 lib/gocr/ocr0.c for(;y>0;y--){ if( num_cross(0,dx-1,y,y,bp,cs) != 2 ) break; } yf=y; num_cross 4801 lib/gocr/ocr0.c if( num_cross(0, dx-1, y , y ,bp,cs) != 1 ) num_cross 4802 lib/gocr/ocr0.c if( num_cross(0, dx-1, y+dy/16 , y+dy/16 ,bp,cs) != 1 ) break; num_cross 4857 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) i++; num_cross 5144 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) i++; num_cross 5186 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) i++; num_cross 5262 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) break; num_cross 5337 lib/gocr/ocr0.c if( num_cross(0,dx-1, 0, 0,bp,cs) != 1 ) break; num_cross 5338 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1,dy-1,bp,cs) != 1 ) break; num_cross 5342 lib/gocr/ocr0.c if( num_cross(0,dx,y,y,bp,cs) != 2 ) break; num_cross 5356 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) break; num_cross 5359 lib/gocr/ocr0.c if( num_cross(dx-1-x,dx-1-x,0,dy-1,bp,cs) != 2 ) break; num_cross 5361 lib/gocr/ocr0.c if ( num_cross(dx-1,dx-1,dy/4,dy-1-dy/4,bp,cs) != 0 ) Break; num_cross 5362 lib/gocr/ocr0.c if ( num_cross( 0, 0,dy/4,dy-1-dy/4,bp,cs) != 1 ) Break; num_cross 5379 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) break; num_cross 5382 lib/gocr/ocr0.c if( num_cross(x,x,0,dy-1,bp,cs) != 2 ) break; num_cross 5384 lib/gocr/ocr0.c if ( num_cross( 0, 0,dy/4,dy-1-dy/4,bp,cs) != 0 ) Break; num_cross 5385 lib/gocr/ocr0.c if ( num_cross(dx-1,dx-1,dy/4,dy-1-dy/4,bp,cs) != 1 ) Break; num_cross 5450 lib/gocr/ocr0.c if( num_cross(x0 ,x1 ,y0+dy/4 ,y0+dy/4 ,box1->p,cs) != 2 num_cross 5451 lib/gocr/ocr0.c && num_cross(x0 ,x1 ,y0+dy/4+1,y0+dy/4+1,box1->p,cs) != 2 ) break; num_cross 5453 lib/gocr/ocr0.c if( y<y1-6*dy/16 ){ if( num_cross(x0 ,x1 ,y,y,box1->p,cs) != 2 ) i--;} num_cross 5454 lib/gocr/ocr0.c else { if( num_cross(x0 ,x1 ,y,y,box1->p,cs) < 2 ) i--;} num_cross 5488 lib/gocr/ocr0.c if( num_cross(x,x,y0,y1,box1->p,cs) == 3 ) break; num_cross 5545 lib/gocr/ocr0.c if( num_cross(x0,x1,y0+dy/2-y,y0+dy/2-y,box1->p,cs) == 2 ) { num_cross 5550 lib/gocr/ocr0.c if( num_cross(x0,x1,y0+dy/2+y,y0+dy/2+y,box1->p,cs) == 2 ) { num_cross 5577 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1,dy/4,dy-1,bp,cs) < 1 ) Break; num_cross 5579 lib/gocr/ocr0.c if( num_cross(x,x,dy/4,dy-1,bp,cs) > 1 ) break; num_cross 5581 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1-dy/4,dy-1-dy/4,bp,cs) > 3 ) { // glued ah num_cross 5595 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4, dy/4,bp,cs) != 3 ) break; num_cross 5596 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/2, dy/2,bp,cs) != 4 ) break; num_cross 5597 lib/gocr/ocr0.c if( num_cross(dx/2,dx-1,dy/2, dy/2,bp,cs) != 2 ) break; num_cross 5598 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs) != 2 ) break; num_cross 5599 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy-1, dy-1,bp,cs) != 1 ) break; num_cross 5600 lib/gocr/ocr0.c if( num_cross( 0, 0,0,dy-1,bp,cs) != 1 ) break; num_cross 5601 lib/gocr/ocr0.c if( num_cross( dx/3, dx/3,0,dy-1,bp,cs) != 4 ) break; num_cross 5602 lib/gocr/ocr0.c if( num_cross(13*dx/16,13*dx/16,0,dy/8,bp,cs) != 0 ) break; num_cross 5603 lib/gocr/ocr0.c if( num_cross(4*dx/8,4*dx/8,dy-dy/4,dy-1,bp,cs) != 1 ) break; num_cross 5604 lib/gocr/ocr0.c if( num_cross(3*dx/8,3*dx/8,dy-dy/4,dy-1,bp,cs) != 1 ) break; num_cross 5605 lib/gocr/ocr0.c if( num_cross(5*dx/8,5*dx/8,dy-dy/4,dy-1,bp,cs) != 1 ) break; num_cross 5617 lib/gocr/ocr0.c if ( num_cross(x0, x1, y0, y0, box1->p, cs) !=1 ) Break; // ~? num_cross 5618 lib/gocr/ocr0.c if ( num_cross(x0, x1, y1, y1, box1->p, cs) > 1 ) Break; // ~? num_cross 5631 lib/gocr/ocr0.c if( num_cross(x0, x1, y0+y, y0+y, box1->p, cs) == 2 ) break; num_cross 5651 lib/gocr/ocr0.c if (num_cross(x0,x1,y0 ,y0 ,box1->p,cs)!=1) Break; num_cross 5652 lib/gocr/ocr0.c if (num_cross(x0,x1,y0+dy/2,y0+dy/2,box1->p,cs)!=1) Break; num_cross 5667 lib/gocr/ocr0.c i=num_cross(x0,x1,y,y,box1->p,cs); if(i>1) break; num_cross 5682 lib/gocr/ocr0.c if( num_cross(0,dx-1, 0,dy-1,bp,cs) != 1 num_cross 5683 lib/gocr/ocr0.c && num_cross(0,dx-1, 1,dy-2,bp,cs) != 1 ) Break; num_cross 5684 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1,dy-1,bp,cs) != 2 num_cross 5685 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs) != 2 ) Break; num_cross 5714 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/8, dy/8,bp,cs) != 3 num_cross 5715 lib/gocr/ocr0.c && num_cross(0,dx-1, 1+dy/8, 1+dy/8,bp,cs) != 3) Break; num_cross 5716 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-2-dy/8,dy-2-dy/8,bp,cs) != 3) Break; num_cross 5717 lib/gocr/ocr0.c if( num_cross(0 , 0, 0,dy-1,bp,cs) != 2) Break; num_cross 5718 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,dy-1,bp,cs) != 2) Break; num_cross 5719 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2,dy/2,bp,cs) != 1) Break; num_cross 5720 lib/gocr/ocr0.c if( num_cross( 0 ,dx/8,dy/2,dy/2,bp,cs) != 0) Break; num_cross 5721 lib/gocr/ocr0.c if( num_cross(dx-1-dx/8,dx-1,dy/2,dy/2,bp,cs) != 0) Break; num_cross 5753 lib/gocr/ocr0.c i=num_cross(0,dx-1,y,y,bp,cs); num_cross 5757 lib/gocr/ocr0.c i=num_cross(x,x,0,dy-1,bp,cs); if (i<2) Break; num_cross 5758 lib/gocr/ocr0.c if (i!=4) { j=num_cross(x+1,x+1,0,dy-1,bp,cs); num_cross 5760 lib/gocr/ocr0.c if (i!=4) { j=num_cross(x+2,x+2,0,dy-1,bp,cs); num_cross 5764 lib/gocr/ocr0.c if( num_cross(0, x,y,y,bp,cs) != 2 ) Break; num_cross 5765 lib/gocr/ocr0.c if( num_cross(x,dx-1,y,y,bp,cs) != 2 ) Break; num_cross 5766 lib/gocr/ocr0.c if( num_cross(x,x,0, y,bp,cs) != 2 ) Break; num_cross 5767 lib/gocr/ocr0.c if( num_cross(x,x,y,dy-1,bp,cs) != 2 ) Break; num_cross 5787 lib/gocr/ocr0.c if( num_cross(dx/2,dx/2,0,dy-1,bp,cs) != 4 ) break; num_cross 5788 lib/gocr/ocr0.c if( num_cross(x0,x1,y0+dy/2,y0+dy/2,box1->p,cs) != 2 ) break; num_cross 5822 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4 , dy/4 ,bp,cs) != 2 num_cross 5823 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/16,3*dy/16,bp,cs) != 2 ) break; num_cross 5824 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/4 ,3*dy/4 ,bp,cs) != 2 num_cross 5825 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/4+1,3*dy/4+1,bp,cs) != 2 ) break; num_cross 5851 lib/gocr/ocr0.c if( num_cross(0,dx-1,ya ,ya ,bp,cs) != 1 num_cross 5852 lib/gocr/ocr0.c && num_cross(0,dx-1,ya+1,ya+1,bp,cs) != 1 ) break; /* Dec00 */ num_cross 5854 lib/gocr/ocr0.c if( num_cross(0,dx-1,y ,y ,bp,cs) > 2 num_cross 5855 lib/gocr/ocr0.c && num_cross(0,dx-1,y+1,y+1,bp,cs) > 2 ) break; num_cross 5864 lib/gocr/ocr0.c if( num_cross(x,x,y0+dy/8,y1-dy/8, box1->p,cs) == 1 ) i=0; num_cross 5867 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 2 ) i=0; num_cross 5870 lib/gocr/ocr0.c if( num_cross(x0,x1,y,y, box1->p,cs) == 2 ) i=0; num_cross 5872 lib/gocr/ocr0.c if( num_cross(x0 ,x0+dx/8 ,y0+dy/8 ,y0 ,box1->p,cs) != 0 ) ad=96*ad/100; num_cross 5891 lib/gocr/ocr0.c if( num_cross( dx/4,dx-1,3*dy/16,3*dy/16,bp,cs) != 2 num_cross 5892 lib/gocr/ocr0.c && num_cross(dx-1-dx/4,dx-1,3*dy/16,3*dy/16,bp,cs) != 1 ) Break; num_cross 5893 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/ 4,3*dy/ 4,bp,cs) < 2 ) Break; num_cross 5894 lib/gocr/ocr0.c if( num_cross(0,dx-1, 0, dy-1,bp,cs) < 3 ) Break; num_cross 5895 lib/gocr/ocr0.c if( num_cross(dx-1,0, 0, dy-1,bp,cs) < 3 ) Break; num_cross 5896 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/16, dy/16,bp,cs) < 2 ) num_cross 5897 lib/gocr/ocr0.c if( num_cross(0,dx-1,1+dy/16,1+dy/16,bp,cs) < 2 ) Break; num_cross 5898 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1-dy/16,dy-1-dy/16,bp,cs) < 2 ) Break; num_cross 5923 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/16,3*dy/16,bp,cs) < 2 ) Break; num_cross 5924 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/ 4,3*dy/ 4,bp,cs) < 2 ) Break; num_cross 5925 lib/gocr/ocr0.c if( num_cross(0,dx-1, 0, dy-1,bp,cs) < 3 ) Break; num_cross 5926 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/16, dy/16,bp,cs) != 1 num_cross 5927 lib/gocr/ocr0.c && num_cross(0,dx-1, dy/32, dy/32,bp,cs) != 1 num_cross 5928 lib/gocr/ocr0.c && num_cross(0,dx-1, 0, 0,bp,cs) != 1 ) Break; num_cross 5950 lib/gocr/ocr0.c if( num_cross(x,x, 0,dy-1,bp,cs) == 3 ) num_cross 5951 lib/gocr/ocr0.c if( num_cross(x,x, 0,dy/4,bp,cs) == 1 ) num_cross 5952 lib/gocr/ocr0.c if( num_cross(x-1,dx-1-dx/8,3*dy/4,3*dy/4,bp,cs) == 0 ) num_cross 5953 lib/gocr/ocr0.c if( num_cross(x,x,3*dy/4,dy-1,bp,cs) == 1 ) break; num_cross 5968 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy/2,dy/2,bp,cs) != 3 ) Break; num_cross 5969 lib/gocr/ocr0.c if( num_cross(dx/2,dx/2, 0,dy-1,bp,cs) != 3 ) Break; num_cross 5972 lib/gocr/ocr0.c if( num_cross( 0,dx-1, 0, 0,bp,cs) > 2 ) Break; num_cross 5973 lib/gocr/ocr0.c if( num_cross(dx/4,dx-1, 0, 0,bp,cs) > 2 ) Break; num_cross 5974 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy-1,dy-1,bp,cs) > 2 ) Break; num_cross 5975 lib/gocr/ocr0.c if( num_cross( 0,3*dx/4,dy-1,dy-1,bp,cs) > 2 ) Break; num_cross 5976 lib/gocr/ocr0.c if( num_cross( 0, 0, 0,dy-1,bp,cs) > 2 ) Break; num_cross 5977 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,dy-1,bp,cs) > 2 ) Break; num_cross 5978 lib/gocr/ocr0.c if( num_cross( 0, 0,dy/4,dy-1,bp,cs) > 2 ) Break; num_cross 5979 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,3*dy/4,bp,cs) > 2 ) Break; num_cross 5987 lib/gocr/ocr0.c if( num_cross( 0 ,dx/4,dy/2,dy/2,bp,cs) != 1 ) Break; num_cross 5988 lib/gocr/ocr0.c if( num_cross(dx-1-dx/4,dx-1,dy/2,dy/2,bp,cs) != 1 ) Break; num_cross 5989 lib/gocr/ocr0.c if( num_cross(dx/4,dx-1-dx/4,dy/2,dy/2,bp,cs) != 1 ) Break; num_cross 6007 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy/2,dy/2,bp,cs) != 2 ) Break; num_cross 6008 lib/gocr/ocr0.c if( num_cross(0,dx-1-dx/4,dy/2,dy/2,bp,cs) != 2 ) Break; num_cross 6009 lib/gocr/ocr0.c if( num_cross(dx/2,dx/2, 0,dy-1,bp,cs) != 3 ) Break; num_cross 6010 lib/gocr/ocr0.c if( num_cross( 0,dx-1, 0, 0,bp,cs) > 2 ) Break; num_cross 6011 lib/gocr/ocr0.c if( num_cross(dx/4,dx-1, 0, 0,bp,cs) > 2 ) Break; num_cross 6012 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy-1,dy-1,bp,cs) > 2 ) Break; num_cross 6013 lib/gocr/ocr0.c if( num_cross( 0,3*dx/4,dy-1,dy-1,bp,cs) > 2 ) Break; num_cross 6014 lib/gocr/ocr0.c if( num_cross( 0, 0, 0,dy-1,bp,cs) > 2 ) Break; num_cross 6015 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,dy-1,bp,cs) > 3 ) Break; num_cross 6016 lib/gocr/ocr0.c if( num_cross( 0, 0,dy/4,dy-1,bp,cs) > 2 ) Break; num_cross 6017 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,3*dy/4,bp,cs) > 3 ) Break; num_cross 6027 lib/gocr/ocr0.c if( num_cross( 0 ,dx/4,dy/2,dy/2,bp,cs) != 1 ) Break; num_cross 6028 lib/gocr/ocr0.c if( num_cross(dx-1-dx/4,dx-1,dy/2,dy/2,bp,cs) != 0 ) Break; num_cross 6029 lib/gocr/ocr0.c if( num_cross(dx/4,dx-1-dx/4,dy/2,dy/2,bp,cs) != 1 ) Break; num_cross 6044 lib/gocr/ocr0.c if( num_cross(dx/2,dx/2, 0,dy-1,bp,cs) != 4 ) break; num_cross 6045 lib/gocr/ocr0.c if( num_cross( 0,dx-1, 0, 0,bp,cs) != 1 ) break; num_cross 6046 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy-1,dy-1,bp,cs) != 1 ) break; num_cross 6047 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy/2,dy/2,bp,cs) != 1 ) break; num_cross 6071 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/16,3*dy/16,bp,cs) > 2 ) break; num_cross 6072 lib/gocr/ocr0.c if( num_cross(0,dx-1, 0, dy-1,bp,cs) < 2 ) break; num_cross 6073 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/16, dy/16,bp,cs) > 2 ) break; num_cross 6099 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/8, dy/8,bp,cs) != 2 ) Break; num_cross 6100 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1-dy/8,dy-1-dy/8,bp,cs) != 2 ) Break; num_cross 6101 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/2, dy/2,bp,cs) != 2 ) Break; num_cross 6102 lib/gocr/ocr0.c if( num_cross(0,dx/2, dy/2, dy/2,bp,cs) != 1 ) Break; num_cross 6161 lib/gocr/ocr0.c if( num_cross(x0,x1 ,y0+dy/4,y0+dy/4,box1->p,cs) != 3 num_cross 6162 lib/gocr/ocr0.c && num_cross(x0,x1 ,y0+dy/8,y0+dy/8,box1->p,cs) != 3 ) Break; num_cross 6163 lib/gocr/ocr0.c if( num_cross(x0,x1+dx/4,y1-dy/4,y1-dy/4,box1->p,cs) != 3 num_cross 6164 lib/gocr/ocr0.c && num_cross(x0,x1+dx/4,y1-dy/8,y1-dy/8,box1->p,cs) != 3 ) Break; num_cross 6165 lib/gocr/ocr0.c if( num_cross(x0,x1, y0, y1,box1->p,cs) < 4 num_cross 6166 lib/gocr/ocr0.c && num_cross(x0+dx/8,x1, y0, y1,box1->p,cs) < 4 num_cross 6167 lib/gocr/ocr0.c && num_cross(x0,x1+dx/4, y0, y1,box1->p,cs) < 4 num_cross 6169 lib/gocr/ocr0.c if( num_cross(x0,x1, y0, y1,box1->p,cs) !=5 ) ad=99*ad/100; num_cross 6198 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 6199 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/3,y0 , y0 ,box1->p,cs) != 1 ) // AND num_cross 6200 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/3,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; num_cross 6201 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/3,y1 , y1 ,box1->p,cs) != 2 ) // against "rauschen" num_cross 6202 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/3,y1-1 , y1-1 ,box1->p,cs) != 2 ) Break; num_cross 6203 lib/gocr/ocr0.c if( num_cross(x0 ,x0 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 6204 lib/gocr/ocr0.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 6205 lib/gocr/ocr0.c if( num_cross(x1 ,x1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 6206 lib/gocr/ocr0.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 6464 lib/gocr/ocr0.c && num_cross(x0,x1,y1,y1,box1->p,cs) == 2) { // " " num_cross 6469 lib/gocr/ocr0.c if ( num_cross(x0,x1, y0 , y0 ,box1->p,cs)!=1) ad=96*ad/100; num_cross 6470 lib/gocr/ocr0.c if ( num_cross(x0,x1,(y0+y1)/2,(y0+y1)/2,box1->p,cs)!=1) ad=98*ad/100; num_cross 6485 lib/gocr/ocr0.c && num_cross(x0,x1,y0,y0,box1->p,cs) == 2 num_cross 6486 lib/gocr/ocr0.c && num_cross(x0,x1,y1,y1,box1->p,cs) == 2 ) { num_cross 6505 lib/gocr/ocr0.c && num_cross(x0,x1,y0 ,y0 ,box1->p,cs) == 1 num_cross 6506 lib/gocr/ocr0.c && ( num_cross(x0,x1,y1 ,y1 ,box1->p,cs) == 2 num_cross 6507 lib/gocr/ocr0.c || num_cross(x0,x1,y1-1,y1-1,box1->p,cs) == 2 )) { num_cross 85 lib/gocr/ocr0n.c if( num_cross( dx/2, dx/2,0,dy-1,bp,cs)!=3 num_cross 86 lib/gocr/ocr0n.c && num_cross(5*dx/8,3*dx/8,0,dy-1,bp,cs)!=3 ) Break; num_cross 111 lib/gocr/ocr0n.c if( num_cross( i1, dx-1, y, y,bp,cs)>0 ){ /* S or serif5 ? */ num_cross 121 lib/gocr/ocr0n.c if( num_cross( 0, dx/2, dy-1, dy-1,bp,cs)>1 num_cross 122 lib/gocr/ocr0n.c && num_cross( dx/2,dx-1, 0, 0,bp,cs)>1 ) ad=98*ad/100; /* serifs */ num_cross 128 lib/gocr/ocr0n.c if( num_cross(i1,dx-1,y,y,bp,cs)==0 ) break; num_cross 132 lib/gocr/ocr0n.c if( num_cross(0,i2,y,y,bp,cs)==0 ) break; num_cross 165 lib/gocr/ocr0n.c if( num_cross(dx/4,dx-2,3*dy/10,3*dy/4,bp,cs)==1 ) Break; // connected? num_cross 192 lib/gocr/ocr0n.c if( num_cross(0, dx-1, 0 , 0 ,bp,cs) != 1 num_cross 193 lib/gocr/ocr0n.c && num_cross(0, dx-1, 1 , 1 ,bp,cs) != 1 ) Break; num_cross 194 lib/gocr/ocr0n.c if( num_cross(0, dx-1,dy/2,dy/2,bp,cs) != 1 ) Break; num_cross 195 lib/gocr/ocr0n.c if( num_cross(0, dx-1,dy-1,dy-1,bp,cs) != 1 num_cross 196 lib/gocr/ocr0n.c && num_cross(0, dx-1,dy-2,dy-2,bp,cs) != 1 ) Break; num_cross 210 lib/gocr/ocr0n.c if( num_cross(0, dx-1,3*dy/4,3*dy/4,bp,cs) != 2 ) { // except ocr-a num_cross 212 lib/gocr/ocr0n.c if( num_cross(0, dx-1, y , y ,bp,cs) == 2 ) break; num_cross 215 lib/gocr/ocr0n.c if( num_cross(0, dx-1, y , y ,bp,cs) != 1 ) i--; num_cross 234 lib/gocr/ocr0n.c if( num_cross(0, dx-1, 0 , 0 ,bp,cs) > 1 num_cross 235 lib/gocr/ocr0n.c && num_cross(0, dx-1, 1 , 1 ,bp,cs) > 1 ) Break; // ~/it_7 num_cross 371 lib/gocr/ocr0n.c if( num_cross(x0, x1-dx/8, y0+dy/2, y0+dy/2,box1->p,cs) != 1 ) Break; num_cross 380 lib/gocr/ocr0n.c if( num_cross( x, x, y0, y0+dy/2,box1->p,cs) == 2 ) break; num_cross 384 lib/gocr/ocr0n.c if( num_cross( x, x, y0+3*dy/8,y1,box1->p,cs) == 2 ) break; num_cross 388 lib/gocr/ocr0n.c if( num_cross( x0, x1, y, y,box1->p,cs) == 2 ) i=0; num_cross 547 lib/gocr/ocr0n.c if( num_cross(dx/2,dx/2,0 ,dy-1,bp,cs) < 2 // normal num_cross 548 lib/gocr/ocr0n.c && num_cross(dx/3,dx/3,0 ,dy-1,bp,cs) < 2 ) Break; // fat LCD num_cross 549 lib/gocr/ocr0n.c if( num_cross(dx/4,dx/4,dy-1-dy/2,dy-1,bp,cs) == 0 ) Break; num_cross 759 lib/gocr/ocr0n.c if( num_cross(x ,x ,0 ,dy-1, bp,cs) == 2 ) i--; num_cross 763 lib/gocr/ocr0n.c if( num_cross(0 ,dx-1,y ,y , bp,cs) == 2 ) i--; num_cross 766 lib/gocr/ocr0n.c if( num_cross(0 ,dx-1,y ,y , bp,cs) == 1 ) num_cross 767 lib/gocr/ocr0n.c if( num_cross(dx/2,dx-1,y ,y , bp,cs) == 1 ) i--; num_cross 807 lib/gocr/ocr0n.c if( num_cross(0 ,dx-1,dy/16 ,dy/16 , bp,cs) == 2 // ~9 num_cross 826 lib/gocr/ocr0n.c if( num_cross(x0+ dx/2,x0+ dx/2,y0 ,y1 ,box1->p,cs) != 3 num_cross 827 lib/gocr/ocr0n.c && num_cross(x0+5*dx/8,x0+5*dx/8,y0 ,y1 ,box1->p,cs) != 3 ) { num_cross 828 lib/gocr/ocr0n.c if( num_cross(x0+ dx/2,x0+ dx/2,y0+dy/4,y1 ,box1->p,cs) != 2 num_cross 829 lib/gocr/ocr0n.c && num_cross(x0+5*dx/8,x0+5*dx/8,y0+dy/4,y1 ,box1->p,cs) != 2 ) Break; num_cross 837 lib/gocr/ocr0n.c if( num_cross(x0 ,x1 ,y1-dy/4,y1-dy/4,box1->p,cs) != 2 ) Break; num_cross 866 lib/gocr/ocr0n.c if( num_cross(dx/2,dx-1,y,y,bp,cs) > 1 ) i++; if( i>dy/8 ) break; num_cross 880 lib/gocr/ocr0n.c if( num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs) != 1 ) Break; // preselect num_cross 888 lib/gocr/ocr0n.c if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) break; num_cross 906 lib/gocr/ocr0n.c if( num_cross(0,dx-1,dy/4,dy/4,bp,cs) == 1 num_cross 923 lib/gocr/ocr0n.c if( num_cross(x0,x1,y0 +dy/4,y0 +dy/4,box1->p,cs) != 2 ) Break; // ~gr (glued) num_cross 924 lib/gocr/ocr0n.c if( num_cross(x0,x1,y1 -dy/4,y1 -dy/4,box1->p,cs) != 2 num_cross 925 lib/gocr/ocr0n.c && num_cross(x0,x1,y1-3*dy/8,y1-3*dy/8,box1->p,cs) != 2 ) Break; num_cross 967 lib/gocr/ocr0n.c if( num_cross(x0,x1, i , i ,box1->p,cs) != 1 num_cross 968 lib/gocr/ocr0n.c && num_cross(x0,x1, i+1 , i+1 ,box1->p,cs) != 1 num_cross 969 lib/gocr/ocr0n.c && num_cross(x0,x1,(i+i2)/2,(i+i2)/2,box1->p,cs) != 1 ) Break; // no g num_cross 981 lib/gocr/ocr0n.c if( dy>16 && num_cross(0,dx-1,dy-1,dy-1,bp,cs) > 1 num_cross 984 lib/gocr/ocr0n.c if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) i++; if( i>dy/8 ) break; num_cross 987 lib/gocr/ocr0n.c if (num_cross( 0,dx-1,dy-1,dy-1,bp,cs) > 1) ad=98*ad/100; // & num_cross 988 lib/gocr/ocr0n.c if (num_cross(dx-1,dx-1,dy/2,dy-1,bp,cs) > 1) ad=98*ad/100; // & num_cross 989 lib/gocr/ocr0n.c if (num_cross( 0,dx-1, 0, 0,bp,cs) > 1) ad=98*ad/100; num_cross 991 lib/gocr/ocr0n.c if (num_cross( 0,dx-1, 1, 1,bp,cs) > 1) ad=98*ad/100; num_cross 1014 lib/gocr/ocr0n.c if( num_cross(x0+ dx/2,x0+ dx/2,y0,y1-dy/4,box1->p,cs) != 2 // pre select num_cross 1015 lib/gocr/ocr0n.c && num_cross(x0+ dx/2,x0+ dx/2,y0, y1,box1->p,cs) != 3 // pre select num_cross 1016 lib/gocr/ocr0n.c && num_cross(x0+3*dx/8,x0+3*dx/8,y0,y1,box1->p,cs) != 3 num_cross 1017 lib/gocr/ocr0n.c && num_cross(x0+ dx/4,x1 -dx/4,y0,y1,box1->p,cs) != 3 ) Break; num_cross 1018 lib/gocr/ocr0n.c if( num_cross(x0+ dx/2,x0 +dx/2,y0,y0+dy/4,box1->p,cs) < 1 ) Break; num_cross 1019 lib/gocr/ocr0n.c if( num_cross(x0+ dx/2,x1, y0+dy/2 ,y0+dy/2,box1->p,cs) < 1 ) Break; num_cross 1020 lib/gocr/ocr0n.c if( num_cross(x0,x1, y0+ dy/4 ,y0+ dy/4,box1->p,cs) != 2 num_cross 1021 lib/gocr/ocr0n.c && num_cross(x0,x1, y0+3*dy/8 ,y0+3*dy/8,box1->p,cs) != 2 ) Break; num_cross 1022 lib/gocr/ocr0n.c if( num_cross(x1-dx/8,x1,y0+dy/4,y0+dy/4,box1->p,cs) == 0) ad=ad*97/100; // ~4 num_cross 1036 lib/gocr/ocr0n.c if( num_cross(x0+dx/2,x1,i,y1 ,box1->p,cs) != 1 /* fails on 5x8 */ num_cross 1037 lib/gocr/ocr0n.c && num_cross(x0+dx/2,x1,i,y1-dy/8,box1->p,cs) != 1 ) Break; num_cross 1038 lib/gocr/ocr0n.c if( num_cross(x0+dx/2,x0+dx/2,i,y1,box1->p,cs) > 1 ) Break; num_cross 1039 lib/gocr/ocr0n.c if( num_cross(x0+dx/2,x1 ,i, i,box1->p,cs) != 1 ) Break; num_cross 1093 lib/gocr/ocr0n.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1 ,box1->p,cs) != 2 ) Break; num_cross 1094 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y0 , y0 ,box1->p,cs) != 1 ) // AND num_cross 1095 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; num_cross 1096 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y1 , y1 ,box1->p,cs) != 1 ) // against "rauschen" num_cross 1097 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y1-1 , y1-1 ,box1->p,cs) != 1 ) Break; num_cross 1098 lib/gocr/ocr0n.c if( num_cross(x0 ,x0 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 1099 lib/gocr/ocr0n.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 1100 lib/gocr/ocr0n.c if( num_cross(x1 ,x1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 1101 lib/gocr/ocr0n.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 1149 lib/gocr/ocr0n.c if( num_cross(j,dx-1,y,y,bp,cs) > 1 ) ad=99*ad/100; // ~a \it a num_cross 1158 lib/gocr/ocr0n.c || num_cross(0,dx-1, 0, 0,bp,cs) > 1 num_cross 1159 lib/gocr/ocr0n.c || num_cross(0,dx-1,dy-1,dy-1,bp,cs) > 1 num_cross 1183 lib/gocr/ocr0n.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1 ,box1->p,cs) != 3 ) Break; num_cross 1184 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y0 , y0 ,box1->p,cs) != 1 ) // AND num_cross 1185 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; num_cross 1186 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y1 , y1 ,box1->p,cs) != 1 ) // against "rauschen" num_cross 1187 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y1-1 , y1-1 ,box1->p,cs) != 1 ) Break; num_cross 1188 lib/gocr/ocr0n.c if( num_cross(x0 ,x0 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 1189 lib/gocr/ocr0n.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 1190 lib/gocr/ocr0n.c if( num_cross(x1 ,x1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) num_cross 1191 lib/gocr/ocr0n.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; num_cross 1243 lib/gocr/ocr0n.c if ( num_cross(x0,x0,y0,y1,box1->p,cs) != 1 ) ad=98*ad/100; num_cross 1247 lib/gocr/ocr0n.c if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) i++; else i--; num_cross 1822 lib/gocr/pgm2asc.c if( num_cross(x0, x1,(y0+ y1)/2,(y0+ y1)/2,pp,cs) == 1) num_cross 1823 lib/gocr/pgm2asc.c if( num_cross(x0, x1,(y0+3*y1)/4,(y0+3*y1)/4,pp,cs) == 1) num_cross 2105 lib/gocr/pgm2asc.c n1 = num_cross(x0,x1,( y1+y0)/2,( y1+y0)/2,pp,cs); num_cross 2106 lib/gocr/pgm2asc.c ii = num_cross(x0,x1,(3*y1+y0)/4,(3*y1+y0)/4,pp,cs); if (ii<n1) n1=ii; num_cross 2110 lib/gocr/pgm2asc.c ii = num_cross(x0,x1,i,i,pp,cs); if (ii<n1) n1=ii; num_cross 2116 lib/gocr/pgm2asc.c && num_cross(x0,x1,y1-1,y1-1,pp,cs)==1 // -1 for slopes num_cross 2117 lib/gocr/pgm2asc.c && num_cross((x0+2*x1)/3,(x0+3*x1)/4,y0,y1,pp,cs)<3 // not exclude tz num_cross 2118 lib/gocr/pgm2asc.c && num_cross((3*x0+x1)/4,(2*x0+x1)/3,y0,y1,pp,cs)<3 // not exclude zl num_cross 2124 lib/gocr/pgm2asc.c if ( num_cross(x0,x1,(y1+y0)/2,(y1+y0)/2,pp,cs)<=1 ) continue; num_cross 499 lib/gocr/remove.c if(num_cross(j1 ,j1+x,y,y,pp,cs) < 2 ){ j1+=x;continue; } num_cross 565 lib/gocr/remove.c if(num_cross(j1 ,j1+x,y,y,pp,cs) < 2 ){ j1+=x;continue; }