[英]error (-215:Assertion failed) !ssize.empty() in function 'resize' in opencv had no problem on Macos but error occur with Windows
I write the code on the mac and it run correctly but when I put the code to run on Windows it shows an error error (-215:Assertion failed).ssize.empty()我在mac上编写代码并且它运行正确但是当我将代码放在Windows上运行时它显示一个错误错误(-215:Assertion failed).ssize.empty()
for img_path in images_path:
# Loading image
img = cv2.imread(img_path)
img = cv2.resize(img, None, fx=0.4, fy=0.4)
height, width, channels = img.shape
# Detecting objects
blob = cv2.dnn.blobFromImage(
img, 0.00392, (416, 416), (0, 0, 0), True, crop=False)
net.setInput(blob)
outs = net.forward(output_layers)
problem occurs around these line of code I don't have a Windows laptop with me right now这些代码行出现问题 我现在没有 Windows 笔记本电脑
How can I fix that it is a company's laptop which had to enter password for any permission.我该如何解决这是一家公司的笔记本电脑,必须输入密码才能获得任何权限。 I cannot upgrade the opencv even have entered password Is the version of the opencv matter with this problem?即使输入密码也无法升级opencv opencv的版本是否与此问题有关?
(-215:Assertion failed) means openCV could not find a media file at that particular location that you specified OR for video: (-215:Assertion failed) means your video ran out of frames and raised this error (-215:Assertion failed) 表示 openCV 在您指定的特定位置或视频找不到媒体文件: (-215:Assertion failed) 表示您的视频帧数不足并引发此错误
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.