Open fggzs opened 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)
AttributeError: 'DdddOcr' object has no attribute 'slide_match'
你的代码文件的名字是不是ddddocr.py?这个问题建议截图一下反馈,图中需要附带完整的开发界面(比如文件名什么的)
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)