Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image processing 如何使用pytesseract/tesseract版本4.0(使用eq.traineddata)提取带有数学符号的文本';equ&x27;不再受支持_Image Processing_Computer Vision_Ocr_Tesseract_Python Tesseract - Fatal编程技术网

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/
中时,它抛出了一个无法复制的错误

请帮助我如何提取一些包含简单数学符号的文本