Assertion failure : size.width>0 && size.height>0 in function imshow

前端 未结 10 1292
失恋的感觉
失恋的感觉 2020-11-30 12:19

i am using opencv2 and python on raspberry pi. and i am new with python and opencv. i tried to read a jpeg image and display image it shows the following error:

<         


        
10条回答
  •  没有蜡笔的小新
    2020-11-30 12:52

    This problem happened to me when i just failed to write the extension of the image.
    Please check if you forgot to write the extension or any other part of the full path to the image.

    Remember, extension is required whether you are printing image using OpenCV or Mathplotlib.

提交回复
热议问题