ocr and canvas integration