OCR(1)

πŸ“¦ version 1.26, in nixos 26.05, nixpkgs unstable

πŸ’– OCR(1) β€” the ocr page, but make it a group chat πŸ’–

okay so real talk, this is a User Contributed Perl Documentation page, and the manual itself is ocr. it's short, it's sweet, it's giving "tiny script, big main character energy." let's get into it πŸŽ€


✨ NAME ✨

ocr β€” performs OCR on an image and outputs the text to stdout πŸ¦‹

like, you hand it a picture, it hands you back words. that's the whole vibe.


πŸ’… DESCRIPTION πŸ’…

ngl bestie, this is just an interface. its entire job is to make it quick and easy to get OCR output out of an image file. no cap.

and here's the iconic part: no matter what image type you provide, imagemagick convert gets called to turn it into the format that tesseract wants. so you don't have to think about it β€” the pipeline handles the glow-up for you ✨


🌸 USAGE 🌸

ocr [OPTION]... FILE...

here's the whole flag lineup, bestie:

  • -b β€” blowup (super useful for small images β€” think of it as giving your tiny pic a little growth spurt πŸ”)
  • -d β€” debug
  • -h β€” help
  • -l string β€” language (you pass it a string, iykyk)
  • -v β€” version
heads up: that -l one takes an argument, so don't leave it hanging with nothing after it πŸ™ˆ

🧚 EXAMPLE USAGE 🧚

these are literally the exact moves, copy them character for character:

ocr ./image.jpg > ./savetext.txt
ocr ./image.png
ocr ./image1.jpg ./image2.jpg > ./alltext.txt
ocr ./image*jpg

look at that last one β€” glob city, we love a wildcard moment 🌈 multiple files? sure. redirect it into a text file? absolutely. she contains multitudes πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

  • Image::OCR::Tesseract β€” the parent package πŸ‘‘
  • tesseract β€” look up google ocr project
  • convert β€” from ImageMagick suite

Copyright (c) 2010 Leo Charre. All rights reserved.


⭐ LICENSE ⭐

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".


πŸ’€ DISCLAIMER πŸ’€

This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

fr fr, no promises on the warranty front 😭

See the "GNU General Public License" for more details.


okay that's the whole page, bestie β€” go forth and OCR literally everything 🫢

perl v5.42.3 Β· 2020-10-11 Β· OCR(1) β€” mwah, that's a wrap πŸ’‹βœ¨

πŸ“¦ where this page comes from