Changeset 62
- Timestamp:
- 27.11.2006 19:51:56 (2 years ago)
- Files:
-
- trunk/devel/FuzzyOcr.scansets (modified) (1 diff)
- trunk/devel/FuzzyOcr/Scanset.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/devel/FuzzyOcr.scansets
r60 r62 17 17 scanset tesseract { 18 18 preprocessors = maketiff 19 ocr_command = tesseract $input $output batch19 ocr_command = /usr/local/bin/tesseract $input $output batch 20 20 force_output_in = $output.txt 21 21 } trunk/devel/FuzzyOcr/Scanset.pm
r61 r62 70 70 # Scanset enforces OCR output in file $out_in (for example TesserAct has multiple files as output) 71 71 if ($out_in) { 72 $out_in =~ s/\$output/$output/; 73 $out_in =~ s/\$tmpdir/$tmpdir/; 72 74 $retcode = FuzzyOcr::Misc::save_execute($rcmd, $stdin, $stdout, $stderr); 73 unless ( open(INFILE, "<$ tmpdir/$out_in") ) {75 unless ( open(INFILE, "<$out_in") ) { 74 76 debuglog("Unable to read output from \"$out_in\" for scanset $self->{label}"); 75 77 $stderr =~ tr/>|</ /;
