【问题标题】:Persian OCR issue波斯 OCR 问题
【发布时间】:2016-07-29 18:50:13
【问题描述】:

我目前正在研究 OCR(波斯语), 尽管“fas.traineddata”在 tessdata 中可用,但是当我使用以下命令时,什么也没有发生:

import pytesseract
from PIL import Image

print(pytesseract.image_to_string(Image.open('image.png'), lang='fas'))

图片:

我也使用了https://github.com/reza1615/PersianOcr 的训练数据,但同样没有结果。

我该怎么办?

谢谢

【问题讨论】:

    标签: ocr


    【解决方案1】:

    我在波斯语图像上尝试了您的代码,结果是完整的。你已经安装了 tesseract-ocr-fas 吗?如果没有:

    sudo apt-get install tesseract-ocr-fas
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-07-21
      • 2020-10-25
      • 2022-08-10
      • 2020-04-17
      • 1970-01-01
      • 2013-12-29
      • 1970-01-01
      相关资源
      最近更新 更多