找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 5760|回复: 0

[求助] OpenCV Error: Assertion failed (ssize.width > 0 &&

1

主题

1

帖子

1

积分

贫民

积分
1
thts 发表于 2018-5-10 14:45:12 | 显示全部楼层 |阅读模式
1威望
F:\tmp>python genPlate.py 100 ./plate_100
冀JBSLLQ ['冀', 'J', 'B', 'S', 'L', 'L', 'Q']
OpenCV(3.4.1) Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file D:\Build\OpenCV\opencv-3.4.1\modules\imgproc\src\resize.cpp, line 4044
Traceback (most recent call last):
  File "genPlate.py", line 230, in <module>
    G.genBatch(int(sys.argv[1]),2,range(31,65),sys.argv[2],(272,72))
  File "genPlate.py", line 222, in genBatch
    img = cv2.resize(img,size)
cv2.error: OpenCV(3.4.1) D:\Build\OpenCV\opencv-3.4.1\modules\imgproc\src\resize.cpp:4044: error: (-215) ssize.width > 0 && ssize.height > 0 in function cv::resize


上面是做车牌的程序,命令窗口出的提示是上面,不懂怎么改?求指导

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表