GOCR(1)

NAME
gocr - command line OCR tool

SYNOPSIS
gocr [OPTION]... pnm file

DESCRIPTION
gocr is an optical character recognition program that can be used from the command line. It takes input in PNM, PGM, PBM, PPM, or PCX format, and writes recognized text to stdout. If the pnm file is a single dash, PNM data is read from stdin.

OPTIONS

-h  show usage information

-i file
    read input from file (or stdin if file is a single dash)

-o file
    send output to file instead of stdout

-e file
    send errors to file instead of stderr

-l level
    set grey level to level (0<160<=255)

-d size
    set dust size (clusters smaller than this are removed); the default is 10

-s num
    set spacewidth/dots (0 for autodetect)

-v verbosity
    be verbose; verbosity is a bitfield

-c string
    only recognise characters from string

-m modes
    set operation modes; modes is a bitfield

-n bool
    if bool is non-zero, only recognise numbers

The verbosity is specified as a bitfield:

1   print more info

2   list shapes of boxes (see -c)

4   list pattern of boxes (see -c)

8   print pattern after recognition

16  print line information

32  create outXX.pgm

The operation modes are:

2   use database (early development)

4   layout analysis, zoning (development)

8   don't compare unrecognized characters

16  don't divide overlapping characters

32  don't do context correction

64  character packing (development)

AUTHOR

Joerg Schulenburg <Joerg.Schulenburg@physik.uni-magdeburg.de>
Man page by Tim Waugh <twaugh@redhat.com>