如何通过tesseract OCR识别带有少量数学符号的文本?

ybd*_*ire 6 ocr tesseract image-recognition

我的文字包含一些不那么复杂的数学符号,如下所示。

在此处输入图片说明

在此处输入图片说明

Tesseract OCR 默认无法识别此类数学符号(+-、角度)。我怎样才能通过 tesseract 识别这样的数学符号?

tif*_*i90 2

只需使用以下语句:

pytesseract.image_to_string(Image.open(img), config='-l eng + equ')
Run Code Online (Sandbox Code Playgroud)

还要确保 pytesseract 使用方程进行训练。

蒂菲