|
Revision 105, 0.7 kB
(checked in by decoder, 2 years ago)
|
Added FuzzyOcr? 3.5.0-rc1 tag
|
| 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 |
} |
|---|