HOCR(1)
πΈ 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β usePATHfor the output images, that's the spot-u,--data-out=FILEβ useFILEas 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:0normal,1none,2fine-t,--threshold=NUMβ useNUMas the threshold value, range is1..100-a,--adaptive-threshold=NUMβ useNUMas the adaptive threshold value,1..100-s,--scale=SCALEβ scales the input image bySCALEfrom1..9, or0for 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,0auto,255free-x,--slicing=NUMβ useNUMas the font slicing threshold,1..250-X,--slicing-width=NUMβ useNUMas the font slicing width,50..250-w,--font-spacing=NUMβ font spacing: tight at..-1,0, and spaced at1..
π 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 filterNUM-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β useFILEas the input image file name-o,--text-out=FILEβ useFILEas 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 fontNUM-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
- debian bookworm: libhocr0 0.10.18-3.2+b2 Β· GPL-3.0-or-later
- ubuntu jammy: libhocr0 0.10.18-3.2build1 Β· 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