Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fggzs opened this issue May 28, 2024 · 2 comments
Open

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

fggzs opened this issue May 28, 2024 · 2 comments

Comments

@fggzs
Copy link

fggzs commented May 28, 2024

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
Copy link
Author

fggzs commented May 28, 2024

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

@sml2h3
Copy link
Owner

sml2h3 commented Jun 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants