root/trunk/devel/FuzzyOcr.preps

Revision 132, 0.7 kB (checked in by decoder, 1 year 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 preprocessors
2 # Do not modify this on your own unless you have read the manual and know what you're doing
3
4 # Normalizes a PNM
5 preprocessor normalize {
6     command = pnmnorm
7 }
8
9 # Inverts a PNM
10 preprocessor invert {
11     command = pnminvert
12 }
13
14 # Converts PPM (Color PNM) to PGM (Greyscale PNM)
15 preprocessor ppmtopgm {
16     command = ppmtopgm
17 }
18
19 # Converts PAM to PNM
20 preprocessor pamtopnm {
21     command = pamtopnm
22 }
23
24 # Uses thresholding on the PAM file
25 preprocessor pamthreshold {
26     command = pamthreshold
27     args = -simple -threshold 0.5
28 }
29
30 # converts PNM to TIFF (this is used for tesseract)
31 preprocessor maketiff {
32     command = pnmtotiff
33     args = -color -truecolor
34 }
35
Note: See TracBrowser for help on using the browser.