ocr4gamera1
Ocr system using the gamera framework
Usage
ocr4gamera -x <traindata> [options] <imagefile>
Options
-v<int>, --verbosity=<int>-
Set verbosity level to <int>. Possible values are 0 (default): silent operation; 1: information on progress; >2: segmentation info is written to PNG files with prefix
debug_.
-
-h, --help -
Display help and exit.
-
--version -
Print version and exit.
-
-d, --deskew -
Do a skew correction (recommended).
-
-mf <ws>, --median_filter=<ws> -
Smooth the input image with a median filter with window size <ws>. Default is <ws>=0, which means no smoothing
-
-ds <s>, --despeckle=<s> -
Remove all speckle with size <= <s>. Default is <s> = 0, which means no despeckling.
-
-f, --filter -
Filter out very large (images) and very small components (noise).
-
-a, --automatic-group -
Autogroup glyphs with classifier.
|
Read training data from <file>. |
|---|---|
|
Write recognized text to file <xml> (otherwise it is written to stdout). |
-
-od <dir>, --output_directory=<dir> -
Writes for each input image <img> the recognized text to <dir>/<img>.txt. Note that this option cannot be used in combination with
-o(--outfile).
-c<csv>, --extra_chars_csvfile=<csv>-
Read additional class name conversions from file <csv>. <csv> must contain one conversion per line.
-R<rules>, --heuristic_rules=<rules>-
Apply heuristic rules <rules> for disambiguation of some chars. <rules> can be
roman(default) ornone(for no rules).
-
-D, --dictionary-correction -
Correct words using a dictionary (requires aspell or ispell).
|
Use <lang> as language for aspell (when option |
|---|---|
|
Correct words only when edit distance not more than <int>. |
-
-ho, --hocr_out -
Writes output as hocr file (only works with the
-ooption).
-
-hi <hocrfile>, --hocr_in=<hocrfile> -
Uses an hocr input file for textline segmentation.
Releases
4 releases since Debian 7 (Wheezy); the text changed 1 time.
--despeckle since Debian 9 (Stretch);
--hocr_in since Debian 9 (Stretch);
--hocr_out since Debian 9 (Stretch);
--median_filter since Debian 9 (Stretch);
--output_directory since Debian 9 (Stretch);
--version since Debian 9 (Stretch);
-ds since Debian 9 (Stretch);
-hi since Debian 9 (Stretch);
-mf since Debian 9 (Stretch);
-od since Debian 9 (Stretch).