Changeset 101
- Timestamp:
- 10.12.2006 02:00:29 (2 years ago)
- Files:
-
- trunk/devel/FuzzyOcr.pm (modified) (3 diffs)
- trunk/devel/FuzzyOcr.scansets (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/devel/FuzzyOcr.pm
r99 r101 151 151 my $pdatalen = length($pdata); 152 152 my $w = 0; my $h = 0; 153 154 my $blah = substr($pdata,0,3); 153 155 154 156 if ( substr($pdata,0,3) eq "\x47\x49\x46" ) { … … 218 220 } 219 221 infolog("TIFF: [${h}x${w}] $filename ($worder)"); 220 infolog("Cannot determi te size of TIFF image, setting to '1x1'") if ($h == 0 and $w == 0);222 infolog("Cannot determine size of TIFF image, setting to '1x1'") if ($h == 0 and $w == 0); 221 223 $imgfiles{$filename}{ftype} = 5; 222 224 $imgfiles{$filename}{width} = $w ? $w : 1; … … 275 277 #keep raw email for debugging later 276 278 my $rawfilename = $imgdir . "/raw.eml"; 277 if (open RAW, ">$ imgfilename") {279 if (open RAW, ">$rawfilename") { 278 280 print RAW $pms->{msg}->get_pristine(); 279 281 close RAW; trunk/devel/FuzzyOcr.scansets
r100 r101 19 19 } 20 20 21 # Inverted Ocrad scanset 22 scanset ocrad- invert {21 # Inverted Ocrad scanset with decolorization 22 scanset ocrad-decolorize-invert { 23 23 preprocessors = ppmtopgm, pamthreshold, pamtopnm 24 24 command = $ocrad 25 25 args = -s5 -i $input 26 } 27 28 # Ocrad scanset with decolorization 29 scanset ocrad-decolorize { 30 preprocessors = ppmtopgm, pamthreshold, pamtopnm 31 command = $ocrad 32 args = -s5 $input 26 33 } 27 34
