简体   繁体   English

error (-215:Assertion failed).ssize.empty() in function opencv 中的“resize”在 Macos 上没有问题,但 ZAEA23489CE3AA9B6400ZEBB28E0CDA4 出现错误

[英]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.

相关问题 此错误的问题: (-215:Assertion failed).ssize:empty() in function 'cv::resize' OpenCV - Problem with this error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' OpenCV 错误:(-215:Assertion failed).ssize.empty() in function 'resize' - Error: (-215:Assertion failed) !ssize.empty() in function 'resize' 错误:OpenCV(4.1.0) 错误:(-215:Assertion failed) !ssize.empty() in function 'cv::resize' - error: OpenCV(4.1.0) error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' OpenCV(4.1.2) 错误: (-215:Assertion failed).ssize:empty() in function 'cv::resize' - OpenCV(4.1.2) error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' 在函数 'cv::resize' 中检索 opencv 错误(-215:Assertion failed)!ssize.empty() - Retrieving opencv error (-215:Assertion failed) !ssize.empty() in function 'cv::resize' cv2.error: OpenCV(4.5.2) resize.cpp:4051: error: (-215:Assertion failed).ssize:empty() in function 'cv::resize' - cv2.error: OpenCV(4.5.2) resize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' resize.cpp:4052: error: (-215:Assertion failed).ssize:empty() in function 'cv::resize' - resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' OpenCV(4.2.0),imwrite() 到子文件夹会破坏模块; cv2.error: (-215:Assertion failed).ssize:empty() in function 'cv::resize'`' - OpenCV(4.2.0),imwrite() to a subfolder breaks the module; cv2.error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'`' CV2 图像错误:错误:(-215:Assertion failed).ssize:empty() in function 'cv::resize' - CV2 Image Error: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' OPEN-CV 错误:(-215:Assertion failed).ssize:empty() in function 'cv::resize' - OPEN-CV error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM