一般、点选、滑动验证码 ,自动解决方式


识别验证码

1 import ddddocr
2 def ocr(path):
3     ocr = ddddocr.DdddOcr()
4     with open(path, 'rb') as f:
5         img_bytes = f.read()
6     res = ocr.classification(img_bytes)
7     return res
8 c = ocr(r"C:\Users\zd\Pictures\captcha.jpg")
9 print(c)

点选、滑动验证码 

他山之石:https://wenanzhe.com/