|
Revision 132, 1.5 KB
(checked in by decoder, 3 years ago)
|
|
Added capabilities to scan PDF files (highly experimental and disabled by default)
- config params: focr_scan_pdfs focr_pdf_maxpages
|
| Line | |
|---|
| 1 | # This file contains the scansets |
|---|
| 2 | # Do not modify this on your own unless you have read the manual and know what you're doing |
|---|
| 3 | |
|---|
| 4 | # Note: If the focr_minimal_scanset option is enabled (default), |
|---|
| 5 | # not all of these scansets run for every picture. But be aware |
|---|
| 6 | # that for ham images, all of them will always run. |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | # Standard Ocrad Scanset |
|---|
| 10 | scanset ocrad { |
|---|
| 11 | command = $ocrad |
|---|
| 12 | args = -s5 $input |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | # Inverted Ocrad scanset |
|---|
| 16 | scanset ocrad-invert { |
|---|
| 17 | command = $ocrad |
|---|
| 18 | args = -s5 -i $input |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | # Inverted Ocrad scanset with decolorization |
|---|
| 22 | scanset ocrad-decolorize-invert { |
|---|
| 23 | preprocessors = ppmtopgm, pamthreshold, pamtopnm |
|---|
| 24 | command = $ocrad |
|---|
| 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 |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | # Standard Gocr Scanset |
|---|
| 36 | scanset gocr { |
|---|
| 37 | command = $gocr |
|---|
| 38 | args = -i $input |
|---|
| 39 | } |
|---|
| 40 | |
|---|
| 41 | # Tweaked Gocr Scanset |
|---|
| 42 | scanset gocr-180 { |
|---|
| 43 | command = $gocr |
|---|
| 44 | args = -l 180 -d 2 -i $input |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | # An example Scanset how to use tesseract (disabled by default) |
|---|
| 48 | #scanset tesseract { |
|---|
| 49 | # preprocessors = maketiff |
|---|
| 50 | # command = $tesseract |
|---|
| 51 | # args = $input $output |
|---|
| 52 | # force_output_in = $output.txt |
|---|
| 53 | #} |
|---|
| 54 | |
|---|
| 55 | # Another example, this basically does the same as the inverted Ocrad Scanset |
|---|
| 56 | # Only listed here to serve as example, ocrad-invert does this already |
|---|
| 57 | # |
|---|
| 58 | #scanset gocr-invert { |
|---|
| 59 | # preprocessors = normalize, invert, normalize |
|---|
| 60 | # command = $gocr |
|---|
| 61 | # args = -i $input |
|---|
| 62 | #} |
|---|
| 63 | |
|---|