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

运行实例时报错 #4

Open
351137353 opened this issue Aug 21, 2018 · 2 comments
Open

运行实例时报错 #4

351137353 opened this issue Aug 21, 2018 · 2 comments

Comments

@351137353
Copy link

执行idcard_recognize.process('testimages/1.jpg')时报错:
OpenCV(3.4.2) /io/opencv/modules/imgproc/src/resize.cpp:4045: error: (-215:Assertion failed) !dsize.empty() || (inv_scale_x > 0 && inv_scale_y > 0) in function 'resize'。
请问是什么原因呀?

@BIGPPWONG
Copy link
Owner

图片尺寸不对,或者模版匹配失败了

@fangkaiyu
Copy link

适用了几张,对复杂点的背景模板经常匹配不到。

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

3 participants