idcardocr icon indicating copy to clipboard operation
idcardocr copied to clipboard

运行实例时报错

Open 351137353 opened this issue 6 years ago • 2 comments

执行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'。 请问是什么原因呀?

351137353 avatar Aug 21 '18 07:08 351137353

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

BIGPPWONG avatar Aug 21 '18 09:08 BIGPPWONG

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

fangkaiyu avatar Sep 11 '18 00:09 fangkaiyu