1OCRAD(1)                         User Commands                        OCRAD(1)
2
3
4

NAME

6       ocrad - command line text recognition tool
7

SYNOPSIS

9       ocrad [options] [files]
10

DESCRIPTION

12       GNU  Ocrad is an OCR (Optical Character Recognition) program based on a
13       feature extraction method. It reads images in png or  pnm  formats  and
14       produces  text  in byte (8-bit) or UTF-8 formats. The formats pbm (bit‐
15       map), pgm (greyscale), and ppm (color) are collectively known as pnm.
16
17       Ocrad includes a layout analyser able to separate the columns or blocks
18       of text normally found on printed pages.
19
20       For  best  results the characters should be at least 20 pixels high. If
21       they are smaller, try the option --scale. Scanning the image at 300 dpi
22       usually  produces a character size good enough for ocrad.  Merged, very
23       bold, or very light (broken) characters  are  normally  not  recognized
24       correctly. Try to avoid them.
25

OPTIONS

27       -h, --help
28              display this help and exit
29
30       -V, --version
31              output version information and exit
32
33       -a, --append
34              append text to output file
35
36       -c, --charset=<name>
37              try '--charset=help' for a list of names
38
39       -e, --filter=<name>
40              try '--filter=help' for a list of names
41
42       -E, --user-filter=<file>
43              user-defined filter, see manual for format
44
45       -f, --force
46              force overwrite of output file
47
48       -F, --format=<fmt>
49              output format (byte, utf8)
50
51       -i, --invert
52              invert image levels (white on black)
53
54       -l, --layout
55              perform layout analysis
56
57       -o, --output=<file>
58              place the output into <file>
59
60       -q, --quiet
61              suppress all messages
62
63       -s, --scale=[-]<n>
64              scale input image by [1/]<n>
65
66       -t, --transform=<name>
67              try '--transform=help' for a list of names
68
69       -T, --threshold=<n>
70              threshold for binarization (0.0-1.0)
71
72       -u, --cut=<l,t,w,h>
73              cut the input image by the rectangle given
74
75       -v, --verbose
76              be verbose
77
78       -x, --export=<file>
79              export results in ORF format to <file>
80
81       If  no  files are specified, or if a file is '-', ocrad reads the image
82       from standard input.  If the option -o is not  specified,  ocrad  sends
83       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 (e.g., bug)
88       which caused ocrad to panic.
89

REPORTING BUGS

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 © 2022 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

SEE ALSO

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
112GNU ocrad 0.28                   January 2022                         OCRAD(1)
Impressum