一、python验证码识别库安装
Ubuntu版本:
1.tesseract-ocr安装
sudo apt-get install tesseract-ocr
2.pytesseract安装
sudo pip install pytesseract
3.Pillow 安装
sudo pip install pillow
其他linux版本(如centos):
1.tesseract-ocr安装
没找到直接命令安装,所以需要手动下载安装包。
https://github.com/tesseract-ocr/tesseract
在上述地址中下载最新的tesseract-ocr的安装包,并解压。
通过以下命令安装:
(1)cd tesseract-3.04.01
(2)./autogen.sh
(3)./configure
注意,如果出现error: leptonica not found,需要下载安装leptonica
http://www.leptonica.org/download.html
(4)make
(5)make install
(6)ldconfig
2.pytesseract安装
sudo pip install pytesseract
3.Pillow 安装
sudo pip install pillow
windo

这篇博客介绍了如何在不同操作系统(Ubuntu、CentOS、Windows、Mac)上安装tesseract-ocr、pytesseract和Pillow库,以实现Python验证码识别。在使用过程中可能遇到的`TesseractError`问题,可以通过下载并移动`eng.traineddata`文件来解决。
最低0.47元/天 解锁文章
1111

被折叠的 条评论
为什么被折叠?



