如何使用Python识别图片中的文字
2019-11-21 本文已影响0人
星之海洋
开发环境
1、系统环境:win10
2、python版本:3.7.2
3、安装OCR,下载地址:https://digi.bib.uni-mannheim.de/tesseract/
4、运行:pip3 install tesserocr
如果安装失败,可以下载whl包,手动安装,下载地址:https://github.com/simonflueckiger/tesserocr-windows_build/releases,安装如图:

5、如果出现如图错误,那是因为tesserocr找不到tesseract目录,手动复制到报错路径中

操作如图


6、测试图片以及代码如果

