我不明白我和女苔丝的结果

2024-04-26 00:38:41 发布

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

我试着看下面的图片:

so here is my python script :

try:
    import Image
except ImportError:
    from PIL import Image
import pytesseract as tes

results = tes.image_to_string(Image.open('./test.png'),boxes=True)
print(results)

我得到的结果是:

^{pr2}$

这是什么意思?我如何解释这个结果?在

非常感谢!在


Tags: tofromimageimportstringpilas图片
1条回答
网友
1楼 · 发布于 2024-04-26 00:38:41

当您在tes.image_to_string()中设置boxes=True时,输出为box文件格式,其中行中的第一个字母是识别的字符,然后是图像中该字符出现的边界框坐标。{{cd3}仅当输出

您尝试的图像OCR是7段数字,您可能需要为7段数字提供经过训练的(语言)数据才能获得良好的结果。

相关问题 更多 >