Object-orientify ocr