提高tesseract法语ocr结果

2024-04-19 21:36:29 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在一个相当干净的图像上执行OCR,我认为OCR“简单”:

enter image description here

但是使用tesseract的结果非常糟糕:

print(pytesseract.image_to_string(Image.open('file-2.jpg'),lang='fra'))

Maintenant ie La QT vieux, lorsque
je parcours un cimetière, j'ai
l'impression de Dares CT
LT TTC

为什么?我能提高成绩吗?你知道吗

当我使用在线光学字符识别工具的结果是完美的。你知道吗


Tags: to图像imagelangstringopenfileocr