https://github.com/kba/ocrad-docker
GNU ocrad in a docker container
https://github.com/kba/ocrad-docker
Last synced: 6 months ago
JSON representation
GNU ocrad in a docker container
- Host: GitHub
- URL: https://github.com/kba/ocrad-docker
- Owner: kba
- License: gpl-3.0
- Created: 2016-08-14T19:51:07.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-15T06:54:00.000Z (almost 10 years ago)
- Last Synced: 2025-01-23T01:44:57.061Z (over 1 year ago)
- Language: Makefile
- Homepage: https://hub.docker.com/r/kbai/ocrad/
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ocr - ocrad-docker - Run the [ocrad](http://www.gnu.org/software/ocrad/) OCR engine in a docker container (Software / OCR as a Service)
README
# ocrad-docker
GNU ocrad in a docker container
Current version is `0.25`.
Documentation [available online](https://www.gnu.org/software/ocrad/manual/ocrad_manual.html).
Working directory is `/data`, so best mount files to recoginize into `/data`.
## Usage
```
docker run kbai/ocrad --help
```
GNU Ocrad is an OCR (Optical Character Recognition) program based on a
feature extraction method. It reads images in pbm (bitmap), pgm
(greyscale) or ppm (color) formats and produces text in byte (8-bit) or
UTF-8 formats. The pbm, pgm and ppm formats are collectively known as pnm.
Ocrad includes a layout analyser able to separate the columns or blocks
of text normally found on printed pages.
For best results the characters should be at least 20 pixels high. If
they are smaller, try the --scale option. Scanning the image at 300 dpi
usually produces a character size good enough for ocrad.
Merged, very bold or very light (broken) characters are normally not
recognized correctly. Try to avoid them.
Usage: /usr/local/bin/ocrad [options] [files]
Options:
-h, --help display this help and exit
-V, --version output version information and exit
-a, --append append text to output file
-c, --charset= try '--charset=help' for a list of names
-e, --filter= try '--filter=help' for a list of names
-E, --user-filter= user-defined filter, see manual for format
-f, --force force overwrite of output file
-F, --format= output format (byte, utf8)
-i, --invert invert image levels (white on black)
-l, --layout perform layout analysis
-o, --output= place the output into
-q, --quiet suppress all messages
-s, --scale=[-] scale input image by [1/]
-t, --transform= try '--transform=help' for a list of names
-T, --threshold= threshold for binarization (0-100%)
-u, --cut= cut input image by given rectangle
-v, --verbose be verbose
-x, --export= export results in ORF format to
If no files are specified, ocrad reads the image from standard input.
If the -o option is not specified, ocrad sends text to standard output.
Exit status: 0 for a normal exit, 1 for environmental problems (file
not found, invalid flags, I/O errors, etc), 2 to indicate a corrupt or
invalid input file, 3 for an internal consistency error (eg, bug) which
caused ocrad to panic.
Report bugs to bug-ocrad@gnu.org
Ocrad home page: http://www.gnu.org/software/ocrad/ocrad.html
General help using GNU software: http://www.gnu.org/gethelp