implement basic OCR workflow