ddddocr的安装使用
pip install -i https://mirrors.bfsu.edu.cn/pypi/web/simple/ ddddocr
from DrissionPage import ChromiumPage import ddddocr dp = ChromiumPage() ocr = ddddocr.DdddOcr() dp.get('https://aqscpx.91huayi.com/exercise/ExerciseLogin/StudentLogin') dp.ele('tag:input@@id=uName').input('18501000000') dp.ele('tag:input@@id=uPwd').input('123456') img_bytes = dp.ele('tag:img@@id=uYzm').src() yzm = ocr.classification(img_bytes) dp.ele('tag:input@@id=uCode').input(yzm) dp.ele('tag:button@@id=btnLogin').click(yzm)