Implement or replace the OCR API
masterThe original implementation uses an Azure web service. If you do not have access to Azure, you can replace the ocr_result(image_path) function using the pytesseract package.
The function must return a dictionary (or similar structure) where each word entry contains:
text: The string version of the word.boundingBox: The bounding box in the format[topleft_x, topleft_y, bottomleft_x, bottomleft_y].