Tesseract hocr. A sample code using tesseract-ocr .