1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
# This file contains the preprocessors
# Do not modify this on your own unless you have read the manual and know what you're doing
# Normalizes a PNM
preprocessor normalize {
command = pnmnorm
}
# Inverts a PNM
preprocessor invert {
command = pnminvert
}
# Converts PPM (Color PNM) to PGM (Greyscale PNM)
preprocessor ppmtopgm {
command = ppmtopgm
}
# converts PNM to TIFF (this is used for tesseract)
preprocessor maketiff {
command = pnmtotiff
args = -color -truecolor
}
|