Image processing 如何使用pytesseract/tesseract版本4.0(使用eq.traineddata)提取带有数学符号的文本';equ&x27;不再受支持
如何使用Image processing 如何使用pytesseract/tesseract版本4.0(使用eq.traineddata)提取带有数学符号的文本';equ&x27;不再受支持,image-processing,computer-vision,ocr,tesseract,python-tesseract,Image Processing,Computer Vision,Ocr,Tesseract,Python Tesseract,如何使用teseract提取数学方程 阅读下面给出的图像时: 使用后: img = cv2.imread(IN_PATH+'sample1.png') pytesseract.image_to_string(img) 我得到的结果如下: 'The value of 7/8144 is\n- (a) 20.2 (b) 20.16\n(c) 20.12 (d) 20.4' 在旧版本中,我可以使用 config='-l eng + equ' pytesseract.image_to_strin
teseract
提取数学方程
阅读下面给出的图像时:
使用后:
img = cv2.imread(IN_PATH+'sample1.png')
pytesseract.image_to_string(img)
我得到的结果如下:
'The value of 7/8144 is\n- (a) 20.2 (b) 20.16\n(c) 20.12 (d) 20.4'
在旧版本中,我可以使用
config='-l eng + equ'
pytesseract.image_to_string(img,config=config)
但是teseract 4.0+
中不再支持eq
。
我也有equ.traineddata文件,但我不知道它是如何工作的,当我试图将它粘贴到/usr/share/tesseract ocr/4.00/tesserData/
中时,它抛出了一个无法复制的错误
请帮助我如何提取一些包含简单数学符号的文本