我无法在 open cv 中克服这个错误 [英] I couldn't get past this error in open cv

查看:70
本文介绍了我无法在 open cv 中克服这个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-2b5g8ysb\opencv\modules\highgui\src\window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'

推荐答案

此问题表示断言失败.如果给定路径中不存在该文件,则 cv2 返回此错误.因此,请检查该文件是否存在于您的给定路径中.

This problem says that an assertion is failed. If the file doesn't exist in the given path, cv2 returns this error. So check if the file exists in your given path.

这篇关于我无法在 open cv 中克服这个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆