Error (-215) size.width>0 && size.height>0 occurred when attempting to display an image using OpenCV

后端 未结 11 2584
渐次进展
渐次进展 2020-11-28 15:37

I am trying to run a simple program that reads an image from OpenCV. However, I am getting this error:

error: ......\\modules\\highgui\\src\\window.cpp:281:          


        
11条回答
  •  隐瞒了意图╮
    2020-11-28 15:55

    import numpy as np
    import cv2
    img=cv2.imread('E:\itsme\Camera\pic.jpg',10)
    cv2.imshow('image',img)
    cv2.waitkey(0)
    cv2.destroyallwindows()
    

    just add fill the full directory of your picture in string.

提交回复
热议问题