LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gocr

Optical character recognition program

TLDR

OCR an image
$ gocr [image.pbm]
copy
Set recognition mode
$ gocr -m [mode] [image.pbm]
copy
Output to file
$ gocr -o [output.txt] [image.pbm]
copy
Set character filter
$ gocr -C "[a-zA-Z0-9]" [image.pbm]
copy

SYNOPSIS

gocr [options] image

DESCRIPTION

gocr is an optical character recognition (OCR) program that reads images and outputs recognized text. It supports various image formats including PBM, PGM, PPM, and can be tuned for specific character sets.The tool processes scanned documents and images to extract text, integrating into document processing pipelines via standard input and output.

PARAMETERS

IMAGE

Image file to process.
-o FILE
Output file.
-m MODE
Recognition mode.
-C CHARS
Expected characters.
-i FORMAT
Input format.
--help
Display help information.

INSTALL

sudo apt install gocr
copy
sudo dnf install gocr
copy
sudo pacman -S gocr
copy
sudo zypper install gocr
copy
brew install gocr
copy
nix profile install nixpkgs#gocr
copy

CAVEATS

Accuracy varies by image quality. Works best with clean scans. Consider tesseract for better accuracy.

HISTORY

gocr (also known as JOCR, since the name GOCR was already taken on SourceForge) was created by Jörg Schulenburg in the late 1990s as a free OCR program under the GPL.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid