FDUCSLG / pafd-automated

120 stars 1.51k forks source link

[FIX] 添加验证码识别 #11

Closed ZiYang-xie closed 2 years ago

ZiYang-xie commented 2 years ago

适应新版本

问题描述:

2021年10月26日,学校平安复旦系统更新,添加验证码模块 image

解决方法:

由于验证码较为清晰,这边可以直接用easyocr模块进行识别,添加了验证码识别和错误重试 image

修改了workflow,安装了几个需要的包

# pafd/.github/workflows/automate.yml
- name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install easyocr pillow numpy
          if [ -f requirements.txt ]; then pip install -r requirements.txt; fi