openbsd-ports/graphics/tesseract/pkg/README-main
2011-06-02 13:41:36 +00:00

17 lines
629 B
Plaintext

$OpenBSD: README-main,v 1.2 2011/06/02 13:41:39 ajacoutot Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
Here's a quick HOWTO about optical character recognition using:
scanimage(1) -- from the sane-backends package
unpaper -- from the unpaper package
convert(1) -- from the ImageMagick package
tesseract
$ scanimage --mode gray --resolution 300 > scan.pnm
$ unpaper -b 0.5 -w 0.8 -l single scan.pnm scan1.pnm
$ convert scan1.pnm scan.tif
$ tesseract scan.tif scan.txt