ubantu20.4.1版本下安装tesseract 4.0和pytesseract 并使用
·
1.

2.
3.
如果出现
这种错误。则按照下面这个博客进行操作:https://www.cnblogs.com/yun6853992/p/9343816.html
4.然后再
5.

我的是这个版本:

6.然后终端中输入
![]()
7.终端里输入python进入python环境或者在spyder中测试pytesseract的使用
import pytesseract
from PIL import Image
img = Image.open("./01.jpg")
code = pytesseract.image_to_string(img)
print code
8.如果code是你想要的ocr识别结果,则安装和使用成功
参考博客:
https://www.cnblogs.com/yun6853992/p/9343816.html
https://blog.csdn.net/dcrmg/article/details/78128026
https://blog.csdn.net/dcrmg/article/details/78001771
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)