1OCRAD(1) User Commands OCRAD(1)
2
3
4
6 ocrad - command line text recognition tool
7
9 ocrad [options] [files]
10
12 GNU Ocrad is an OCR (Optical Character Recognition) program based on a
13 feature extraction method. It reads images in pbm (bitmap), pgm
14 (greyscale) or ppm (color) formats and produces text in byte (8-bit) or
15 UTF-8 formats. The pbm, pgm and ppm formats are collectively known as
16 pnm.
17
18 Ocrad includes a layout analyser able to separate the columns or blocks
19 of text normally found on printed pages.
20
21 For best results the characters should be at least 20 pixels high. If
22 they are smaller, try the --scale option. Scanning the image at 300 dpi
23 usually produces a character size good enough for ocrad. Merged, very
24 bold or very light (broken) characters are normally not recognized cor‐
25 rectly. Try to avoid them.
26
28 -h, --help
29 display this help and exit
30
31 -V, --version
32 output version information and exit
33
34 -a, --append
35 append text to output file
36
37 -c, --charset=<name>
38 try '--charset=help' for a list of names
39
40 -e, --filter=<name>
41 try '--filter=help' for a list of names
42
43 -E, --user-filter=<file>
44 user-defined filter, see manual for format
45
46 -f, --force
47 force overwrite of output file
48
49 -F, --format=<fmt>
50 output format (byte, utf8)
51
52 -i, --invert
53 invert image levels (white on black)
54
55 -l, --layout
56 perform layout analysis
57
58 -o, --output=<file>
59 place the output into <file>
60
61 -q, --quiet
62 suppress all messages
63
64 -s, --scale=[-]<n>
65 scale input image by [1/]<n>
66
67 -t, --transform=<name>
68 try '--transform=help' for a list of names
69
70 -T, --threshold=<n%>
71 threshold for binarization (0-100%)
72
73 -u, --cut=<l,t,w,h>
74 cut input image by given rectangle
75
76 -v, --verbose
77 be verbose
78
79 -x, --export=<file>
80 export results in ORF format to <file>
81
82 If no files are specified, ocrad reads the image from standard input.
83 If the -o option is not specified, ocrad sends text to standard output.
84
85 Exit status: 0 for a normal exit, 1 for environmental problems (file
86 not found, invalid flags, I/O errors, etc), 2 to indicate a corrupt or
87 invalid input file, 3 for an internal consistency error (eg, bug) which
88 caused ocrad to panic.
89
91 Report bugs to bug-ocrad@gnu.org
92 Ocrad home page: http://www.gnu.org/software/ocrad/ocrad.html
93 General help using GNU software: http://www.gnu.org/gethelp
94
96 Copyright © 2017 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2
97 or later <http://gnu.org/licenses/gpl.html>
98 This is free software: you are free to change and redistribute it.
99 There is NO WARRANTY, to the extent permitted by law.
100
102 The full documentation for ocrad is maintained as a Texinfo manual. If
103 the info and ocrad programs are properly installed at your site, the
104 command
105
106 info ocrad
107
108 should give you access to the complete manual.
109
110
111
112ocrad 0.26 March 2017 OCRAD(1)