Changeset 62

Show
Ignore:
Timestamp:
27.11.2006 19:51:56 (2 years ago)
Author:
decoder
Message:

Changed substitution rules in force_output_in: $output is replaced with the output file (including tmp path), $tmpdir is replaced with the tmp path
only

Changed TesserAct? scanset, now uses path /usr/local/bin/tesseract

Files:

Legend:

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

    r60 r62  
    1717scanset tesseract { 
    1818preprocessors = maketiff 
    19 ocr_command = tesseract $input $output batch 
     19ocr_command = /usr/local/bin/tesseract $input $output batch 
    2020force_output_in = $output.txt 
    2121} 
  • trunk/devel/FuzzyOcr/Scanset.pm

    r61 r62  
    7070    # Scanset enforces OCR output in file $out_in (for example TesserAct has multiple files as output) 
    7171    if ($out_in) { 
     72        $out_in =~ s/\$output/$output/; 
     73        $out_in =~ s/\$tmpdir/$tmpdir/; 
    7274        $retcode = FuzzyOcr::Misc::save_execute($rcmd, $stdin, $stdout, $stderr); 
    73         unless ( open(INFILE, "<$tmpdir/$out_in") ) { 
     75        unless ( open(INFILE, "<$out_in") ) { 
    7476            debuglog("Unable to read output from \"$out_in\" for scanset $self->{label}"); 
    7577            $stderr =~ tr/>|</   /;