How to detect location of characters using python 3.x
问题 I want to detect the location of each character in an image. I tried pytesseract as suggested in how to get character position in pytesseract but gives me an error import csv import cv2 from pytesseract import pytesseract as pt pt.run_tesseract('bw.png', 'output', lang=None, boxes=True, config="hocr") # To read the coordinates boxes = [] with open('output.box', 'rb') as f: reader = csv.reader(f, delimiter = ' ') for row in reader: if(len(row)==6): boxes.append(row) # Draw the bounding box img