$ gocr $IN.pnm >$OUT.txt
Document layout analysis and optical character recognition system:
$ sudo apt-get install ocrfeeder
Using:
$ ocrfeeder-cli --o $OUTDIR --format HTML --images $IN.pnm
Installing:
$ sudo apt-get install tesseract-ocr
Using:
$ tesseract $IN.tif $OUT $ cat $OUT.txt
$ ocropus hocr-to-text screen.ppm
unpapper