Automation of OCR engine