温馨提示:
本文最后更新于 2022-12-6,已超过半年没有更新,若内容或图片失效,请留言反馈。
基本使用,验证码识别率高
import ddddocr from PIL import Image # 打开保存下来的图片 im1 = Image.open("./img/code.png") # 为了使图片的识别率更高,可以处理一下图片 imRGBA = im1.convert("RGBA") imL = imRGBA.convert("L") imL.save("1.png") ocr = ddddocr.DdddOcr() with open('./img/code.png', 'rb') as f: img_bytes = f.read() text = ocr.classification(img_bytes) print(text) return text
![python3 解决ssl错误,ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)](http://blog.kangzhisj.com/content/uploadfile/202404/thum-ae991714384546.png)
评论一下?