Page 1 of 1

fossapup64 gocr already installed. (Solved Tesseract)

Posted: Tue Jan 25, 2022 5:32 pm
by peppyy

See 3rd post. Went with Tesseract from PPM

Was looking for something to OCR (Optical character recognition) and PPM listed gocr as already installed. Does anyone know how well this works, or if there is a gui for this?

# gocr -h
released under the GNU General Public License
using: gocr [options] pnm_file_name # use - for stdin
options (see gocr manual pages for more details):
-h, --help, -V --version
-i name - input image file (pnm,pgm,pbm,ppm,pcx,...)
-o name - output file (redirection of stdout)
-e name - logging file (redirection of stderr)
-x name - progress output to fifo (see manual)
-p name - database path including final slash (default is ./db/)
-f fmt - output format (ISO8859_1 TeX HTML XML UTF8 ASCII)
-l num - threshold grey level 0<160<=255 (0 = autodetect)
-d num - dust_size (remove small clusters, -1 = autodetect)
-s num - spacewidth/dots (0 = autodetect)
-v num - verbose (see manual page)
-c string - list of chars (debugging, see manual)
-C string - char filter (ex. hexdigits: 0-9A-Fx, only ASCII)
-m num - operation modes (bitpattern, see manual)
-a num - value of certainty (in percent, 0..100, default=95)
-u string - output this string for every unrecognized character
examples:
gocr -m 4 text1.pbm # do layout analyzis
gocr -m 130 -p ./database/ text1.pbm # extend database
djpeg -pnm -gray text.jpg | gocr - # use jpeg-file via pipe

I couldn't get to the website.
website: http://www-e.uni-magdeburg.de/jschulen/ocr/


Re: fossapup64 gocr already installed.

Posted: Tue Jan 25, 2022 6:24 pm
by williwaw

Link seems to redirect to

https://www-e.ovgu.de/jschulen/ocr/


Re: fossapup64 gocr already installed. (Solved Tesseract)

Posted: Wed Jan 26, 2022 3:27 pm
by peppyy

Puppy Package Manager search Tesseract.
Installed English language version 3MB.
Installed gImageReader. 12MB. Launches from menu /graphic.

Good to go.