The position of the symbol can be found as follows.
import csv import cv2 from pytesseract import pytesseract as pt pt.run_tesseract('bw.png', 'output', lang=None, boxes=True, config="hocr")
When using this method, you can skip some texts. For best results, preliminary processing (background subtraction) of the image is required.
source share