.\" Man page generated from reStructuredText. . .TH OCR4GAMERA 1 "" "" "" .SH NAME ocr4gamera \- OCR system using the Gamera framework . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH USAGE .sp \fBocr4gamera\fP \-x \fI\fP [\fIoptions\fP] \fI\fP .SH OPTIONS .INDENT 0.0 .TP .BI \-v \ \fP,\fB \ \-\-verbosity\fB= Set verbosity level to \fI\fP\&. Possible values are 0 (default): silent operation; 1: information on progress; >2: segmentation info is written to PNG files with prefix \fBdebug_\fP\&. .TP .B \-h\fP,\fB \-\-help Display help and exit. .TP .B \-\-version Print version and exit. .TP .B \-d\fP,\fB \-\-deskew Do a skew correction (recommended). .UNINDENT .INDENT 0.0 .TP .B \-mf , \-\-median_filter= Smooth the input image with a median filter with window size \fI\fP\&. Default is \fI=0\fP, which means no smoothing .TP .B \-ds , \-\-despeckle= Remove all speckle with size \fI<= \fP\&. Default is \fI = 0\fP, which means no despeckling. .UNINDENT .INDENT 0.0 .TP .B \-f\fP,\fB \-\-filter Filter out very large (images) and very small components (noise). .TP .B \-a\fP,\fB \-\-automatic\-group Autogroup glyphs with classifier. .TP .BI \-x \ \fP,\fB \ \-\-xmlfile\fB= Read training data from \fI\fP\&. .TP .BI \-o \ \fP,\fB \ \-\-output\fB= Write recognized text to file \fI\fP (otherwise it is written to stdout). .UNINDENT .INDENT 0.0 .TP .B \-od , \-\-output_directory= Writes for each input image \fI\fP the recognized text to \fI/.txt\fP\&. Note that this option cannot be used in combination with \fB\-o\fP (\-\-outfile). .UNINDENT .INDENT 0.0 .TP .BI \-c \ \fP,\fB \ \-\-extra_chars_csvfile\fB= Read additional class name conversions from file \fI\fP\&. \fI\fP must contain one conversion per line. .TP .BI \-R \ \fP,\fB \ \-\-heuristic_rules\fB= Apply heuristic rules \fI\fP for disambiguation of some chars. \fI\fP can be \fBroman\fP (default) or \fBnone\fP (for no rules). .TP .B \-D\fP,\fB \-\-dictionary\-correction Correct words using a dictionary (requires aspell or ispell). .TP .BI \-L \ \fP,\fB \ \-\-dictionary\-language\fB= Use \fI\fP as language for aspell (when option \fB\-D\fP is set). .TP .BI \-e \ \fP,\fB \ \-\-edit\-distance\fB= Correct words only when edit distance not more than \fI\fP\&. .TP .BI \-h\fB o\fP,\fB \ \-\-hocr_out Writes output as hocr file (only works with the \fB\-o\fP option). .UNINDENT .INDENT 0.0 .TP .B \-hi , \-\-hocr_in= Uses an hocr input file for textline segmentation. .UNINDENT .\" Generated by docutils manpage writer. .