OCRAD(1)
π OCRAD β like, the optical text recognition tool, bestie π
okay so you know how sometimes you have an image of text and you're like "ugh I can't copy-paste this"? yeah. that's what ocrad is for. it's the GNU Ocrad situation, a manual-page situation, and honestly? iconic. it lives in the User Commands corner of your system and it's here to turn pixels into words. periodt.
β¨ NAME β¨
ocrad β optical text recognition tool π«Ά
πΈ SYNOPSIS πΈ
ocrad [options] [files]
π¦ DESCRIPTION π¦
GNU Ocrad is an OCR β that's Optical Character Recognition, no cap β program based on a feature extraction method. It reads images in png or pnm formats and produces text in byte (8-bit) or UTF-8 formats. and bestie, the formats pbm (bitmap), pgm (greyscale), and ppm (color) are collectively known as pnm. so there you go. π
Ocrad includes a layout analyser able to separate the columns or blocks of text normally found on printed pages. the way it just knows where your columns are? main character energy fr fr.
For best results the characters should be at least 20 pixels high. if they're smaller, try the option --scale. 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. like, please. for me. π
π OPTIONS π
-h,--helpβ display this help and exit-V,--versionβ output version information and exit-a,--appendβ append text to output file-c,--charset=<name>β try--charset=helpfor a list of names-e,--filter=<name>β try--filter=helpfor a list of names-E,--user-filter=<file>β user-defined filter, see manual for format-f,--forceβ force overwrite of output file-F,--format=<fmt>β output format (byte,utf8)-i,--invertβ invert image levels (white on black)-l,--layoutβ perform layout analysis-o,--output=<file>β place the output into<file>-q,--quietβ suppress all messages-s,--scale=[-]<n>β scale input image by[1/]<n>-t,--transform=<name>β try--transform=helpfor a list of names-T,--threshold=<n>β threshold for binarization (0.0-1.0)-u,--cut=<l,t,w,h>β cut the input image by the rectangle given-v,--verboseβ be verbose-x,--export=<file>β export results in ORF format to<file>
π§ THE DEETS (iykyk) π§
If no files are specified, or if a file is -, ocrad reads the image from standard input. If the option -o is not specified, ocrad sends text to standard output. so simple. so clean. we love a flexible stdin situation. π
π EXIT STATUS π
like, here's the vibe check on how it leaves:
0β a normal exit β¨1β environmental problems (file not found, invalid command-line options, I/O errors, etc)2β to indicate a corrupt or invalid input file π3β for an internal consistency error (e.g., bug) which caused ocrad to panic. yes. panic. it's giving chaos, honestly.
π₯ REPORTING BUGS π₯
Found a bug? don't be shy, tell the devs bestie:
- 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
π COPYRIGHT π
Copyright Β© 2024 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. like literally none. zero. nada. π
β SEE ALSO β
The full documentation for ocrad is maintained as a Texinfo manual. If the info and ocrad programs are properly installed at your site, the command
info ocrad
should give you access to the complete manual. go read it, it's a whole thing. πβ¨
k bye bestie!! this page is from GNU ocrad 0.29, dated January 2024, and it served. stan an OCR tool that keeps it real. ππ¦π
π¦ where this page comes from
- arch rolling: ocrad 0.29-3 Β· GPL-2.0-or-later
- debian trixie: ocrad 0.29-1 Β· GPL-3.0-or-later
- fedora 43: ocrad 0.29-5.fc43 Β· GPL-3.0-or-later
- fedora 44: ocrad 0.29-6.fc44 Β· GPL-3.0-or-later
- nixos 26.05: ocrad 0.29
- nixpkgs unstable: ocrad 0.29
- opensuse-leap 16.0: ocrad 0.29-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: ocrad 0.29-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: ocrad 0.29-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: ocrad 0.29-bp160.1.12 Β· GPL-2.0-or-later
- ubuntu questing: ocrad 0.29-1
- ubuntu resolute: ocrad 0.29-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: ocrad 0.29-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms