I am trying to get character position of image files using pytesseract library .
import pytesseract
from PIL import Image
print pytesseract.image_to_string(I
Did you try use pytesseract.image_to_data()?
data = pytesseract.image_to_data(img, output_type=Output.DICT)
boxes = len(data['level'])
for i in range(boxes ):
(x, y, w, h) = (data['left'][i], data['top'][i], data['width'][i], data['height'][i])
#Draw box
cv2.rectangle(img, (x, y), (x + w, y + h), (0, 255, 0), 2)