end-to-end-for-chinese-plate-recognition icon indicating copy to clipboard operation
end-to-end-for-chinese-plate-recognition copied to clipboard

提示cv2.resize函数报错,请教是怎么回事?

Open axltfytx opened this issue 6 years ago • 4 comments

self.bg  = cv2.resize(cv2.imread("./images/template.bmp"),(226,70));

cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

axltfytx avatar Sep 21 '18 03:09 axltfytx

self.bg  = cv2.resize(cv2.imread("./images/template.bmp"),(226,70));

cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

我也是,请问您解决了吗?

kiosy avatar Nov 13 '18 08:11 kiosy

我也是,请问您解决了吗?

wuzhaoshuai avatar Jan 22 '19 07:01 wuzhaoshuai

百度了一下,说是路径错误,但是跟着项目教程来的啊,求解?

steamyao avatar Jan 16 '20 03:01 steamyao

我解决了,这个是因为那个 text的字符长度不对,在生成的时候 if里判断是长度为9,但是字符串生成的是长度为7

chuyhu avatar Nov 27 '20 03:11 chuyhu