• 处理验证码流程
    tesseract的简单使用

1.安装

tesseract是一个谷歌开源的orc项目
安装之后会生成Tesseract-OCR,需把它的路径加到环境变量PATH中
在pycharm中:

pip install pyteaaeract

2. 简单的小例子

import pytesseract
from PIL import Image
img=Image.open('yzm1.jpg')
code=pytesseract.image_to_string(img)
print(code)

yum1.jpg:
tesseract的简单使用
执行结果:7364

此方法只适合简单的验证码图片,稍微难得就要Tesseract-OCR字符训练工具,

相关文章:

  • 2021-12-30
  • 2021-12-07
  • 2022-01-15
  • 2021-07-13
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2022-01-05
猜你喜欢
  • 2022-12-23
  • 2021-10-25
  • 2021-04-11
  • 2022-12-23
  • 2022-02-09
  • 2022-01-02
相关资源
相似解决方案