HOCR(1)

πŸ“¦ version 0.10.18, in debian bookworm, ubuntu jammy

🌸 NAME 🌸

okay bestie, so hocr is a Hebrew OCR utility πŸ’– that's it that's the whole vibe β€” it reads Hebrew text off your images and turns it into actual text. we're in section 1 of the manual, iykyk ✨


✨ DESCRIPTION ✨

like literally the most iconic little OCR bestie you'll ever meet 🫢 here's how you run her:

hocr [OPTION...] - Hebrew OCR utility

πŸŽ€ Help Options

the "wait what does this do again" squad 🫢

  • -?, --help β€” shows you the help options, no cap
  • --help-all β€” shows you all the help options, every last one πŸ’…
  • --help-file β€” shows just the file options
  • --help-image-proccesing β€” shows just the image proccesing options
  • --help-segmentation β€” shows just the segmentation options
  • --help-debug β€” shows just the debug options

πŸ“ File options

where does everything go, and what do we keep? πŸŽ€

  • -O, --images-out-path=PATH β€” use PATH for the output images, that's the spot
  • -u, --data-out=FILE β€” use FILE as the output data file name
  • -C, --save-copy β€” saves a compy of the original image πŸ™ˆ (yes, compy. she's cute, we keep her)
  • -b, --save-bw β€” saves the proccesd bw image
  • -B, --save-bw-exit β€” saves the proccesd bw image and then dips (exits)
  • -l, --save-layout β€” saves the layout image
  • -L, --save-layout-exit β€” saves the layout image and then exits, bye πŸ‘‹
  • -f, --save-fonts β€” saves fonts
  • -F, --save-fonts-exit β€” saves the fonts images and exits, periodt

πŸ¦‹ Image proccesing options

this is where you tune the actual looking-at-the-picture part πŸ”₯

  • -T, --thresholding-type=NUM β€” thresholding type: 0 normal, 1 none, 2 fine
  • -t, --threshold=NUM β€” use NUM as the threshold value, range is 1..100
  • -a, --adaptive-threshold=NUM β€” use NUM as the adaptive threshold value, 1..100
  • -s, --scale=SCALE β€” scales the input image by SCALE from 1..9, or 0 for auto
  • -S, --no-auto-scale β€” do not auto acale the image, she stays as-is
  • -q, --rotate=DEG β€” rotate the image clockwise, in deg.
  • -Q, --no-auto-rotate β€” do not auto rotate the image

πŸ’… Segmentation options

chopping the page up so it actually makes sense, main character energy fr fr

  • -c, --columns setup=NUM β€” columns setup: 1.. #columns, 0 auto, 255 free
  • -x, --slicing=NUM β€” use NUM as the font slicing threshold, 1..250
  • -X, --slicing-width=NUM β€” use NUM as the font slicing width, 50..250
  • -w, --font-spacing=NUM β€” font spacing: tight at ..-1, 0, and spaced at 1..

πŸ› Debug options

for when you're being nosy about what she's doing πŸ” obsessed

  • -g, --draw-grid β€” draws a grid on the output images
  • -d, --debug β€” prints debugging information while running
  • -D, --debug-extra β€” prints extra debugging information, extra nosy
  • -y, --font-filter=NUM β€” debugs a font filter, use filter NUM
  • -Y, --font-filter-list β€” prints a list of debug a font filters
  • -j, --font-num-out β€” prints font numbers in the output text

πŸ’– Application Options:

the main event, the core four-ish 🫢

  • -i, --image-in=FILE β€” use FILE as the input image file name
  • -o, --text-out=FILE β€” use FILE as the output text file name
  • -h, --html-out β€” outputs the text in html format, fancy πŸ’…
  • -N, --no-gtk β€” do not use gtk for file input and output
  • -z, --font=NUM β€” use font NUM
  • -n, --no-nikud β€” do not recognize nikud
  • -v, --version β€” prints version information and exits

🌈 okay the legal bit, bestie β€” keeping it exactly as written because copyright is not a vibe to freestyle on:

libhocr-0.10.5-i686-pc-linux-gnu-12022008 http://hocr.berlios.de Copyright (C) 2005-2008 Yaacov Zamir <kzamir@walla.co.il>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program 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. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

πŸ”₯ SEE ALSO

go say hi to the other OCR girlies πŸ’œ


and that's the whole manual, bestie πŸŽ€ this hocr - Hebrew OCR utility page is dated February 2008, and the build tag on it is libhocr-0.10.5-i686-pc-linux-gnu-12022008 β€” mwah, iconic, no notes πŸ’…βœ¨

πŸ“¦ where this page comes from