How to get the letter coordinate retrieved by Tesseract ocr
问题 I'm trying to handle tesseract in python to just do simple job: - open a picture - run ocr - get the string - get the characters coordinates The last one is my pain! Here is my first code: import tesseract import glob import cv2 api = tesseract.TessBaseAPI() api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZéèô%") api.SetPageSegMode(tesseract.PSM_AUTO) imagepath = "C:\\Project\\Bob\\" imagePathList = glob.glob(imagepath + "*.jpg") for