#!/bin/sh convert -colorspace gray -fill white -resize 5000x -sharpen 0x1 $1 /tmp/image.jpg tesseract -l nor /tmp/image.jpg /tmp/out cat /tmp/out*