Changeset 96

Show
Ignore:
Timestamp:
08.12.2006 00:09:57 (2 years ago)
Author:
jorge
Message:

Change: reduced logging by changing infolog -> debuglog
Fixed: ocrad scans now skipped when images are smaller than 16x16

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/devel/FuzzyOcr.pm

    r94 r96  
    701701                next; 
    702702            } 
    703             if ($scancmd =~ m/ocrad/ and $$pic{width} < 16 and $$pic{height} < 16) { 
     703            if (($scancmd =~ m/ocrad/) and  
     704                ($$pic{width} < 16 or $$pic{height} < 16)) { 
    704705                warnlog("Skipping $scanlabel, image too small"); 
    705706                next; 
     
    786787                        $modus_match = 0; 
    787788                    } 
    788                     infolog("Enough OCR Hits without space stripping, skipping second matching pass..."); 
     789                    debuglog("Enough OCR Hits without space stripping, skipping second matching pass..."); 
    789790                    last; 
    790791                } elsif (not $modus) { 
    791                     infolog("Not enough OCR Hits without space stripping, doing second matching pass..."); 
     792                    debuglog("Not enough OCR Hits without space stripping, doing second matching pass..."); 
    792793                    if ($mcnt == $cmcnt) { 
    793794                        $modus_match = 1; 
     
    884885        } 
    885886    } 
    886     infolog("FuzzyOcr ending successfully..."); 
     887    debuglog("FuzzyOcr ending successfully..."); 
    887888    return 0; 
    888889}