sml2h3 / ddddocr

带带弟弟 通用验证码识别OCR pypi版
https://ddddocr.com
MIT License
9.72k stars 1.74k forks source link

没有'DdddOcr' object has no attribute 'slide_match'方法了 #191

Open fggzs opened 4 months ago

fggzs commented 4 months ago

fg_bytes = set_img_resize('fg.png', 68, 68)#滑块图片的实际尺寸 bg_bytes = set_img_resize('bg.png', 340, 212)

det = ddddocr.DdddOcr() res = det.slide_match(fg_bytes, bg_bytes)['target'][0]#缺口x坐标 print(res)

fggzs commented 4 months ago

AttributeError: 'DdddOcr' object has no attribute 'slide_match'

sml2h3 commented 3 months ago

你的代码文件的名字是不是ddddocr.py?这个问题建议截图一下反馈,图中需要附带完整的开发界面(比如文件名什么的)