使用PIL+pytesseract+tesseract-ocr

python版本:3.6.3

tesseract-OCR  版本:3.02.02

 

①安装Pillow

cmd切换至pip:pip install Pillow

②安装pytesseract

pip install pytesseract

③手动下载tesseract-OCR.exe  安装 

④执行代码

Python+selenium自动识别验证码

 

补充:

第②步之后,进入“python\Lib\site-packages\pytesseract”目录,修改pytesseract.py文件中“tesseract_cmd”的地址。

 

以上

 

相关文章:

  • 2022-02-02
  • 2021-10-15
  • 2021-05-21
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
猜你喜欢
  • 2021-11-23
  • 2021-08-22
  • 2022-02-18
  • 2021-11-18
  • 2021-10-22
相关资源
相似解决方案