root/trunk/devel/FuzzyOcr.preps

Revision 132, 0.7 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 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
5preprocessor normalize {
6    command = pnmnorm
7}
8
9# Inverts a PNM
10preprocessor invert {
11    command = pnminvert
12}
13
14# Converts PPM (Color PNM) to PGM (Greyscale PNM)
15preprocessor ppmtopgm {
16    command = ppmtopgm
17}
18
19# Converts PAM to PNM
20preprocessor pamtopnm {
21    command = pamtopnm
22}
23
24# Uses thresholding on the PAM file
25preprocessor pamthreshold {
26    command = pamthreshold
27    args = -simple -threshold 0.5
28}
29
30# converts PNM to TIFF (this is used for tesseract)
31preprocessor maketiff {
32    command = pnmtotiff
33    args = -color -truecolor
34}
35
Note: See TracBrowser for help on using the browser.