OCRAD(1)

πŸ“¦
version 0.29 Β· 3 versions
, in arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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=help for a list of names
  • -e, --filter=<name> β€” try --filter=help for 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=help for 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:

  1. 0 β€” a normal exit ✨
  2. 1 β€” environmental problems (file not found, invalid command-line options, I/O errors, etc)
  3. 2 β€” to indicate a corrupt or invalid input file 😭
  4. 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:


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. πŸ’–πŸ¦‹πŸ‘‘