OpenCV resize fails on large image with “error: (-215) ssize.area() > 0 in function cv::resize”

后端 未结 13 2228
醉酒成梦
醉酒成梦 2021-01-01 10:08

I\'m using OpenCV 3.0.0 and Python 3.4.3 to process a very large RGB image (107162,79553,3). While I\'m trying to resize it using the following code:

import         


        
13条回答
  •  没有蜡笔的小新
    2021-01-01 10:21

    I know this is a very old thread but I had the same problem which was due spaces in the images names.

    e.g.

    Image name: "hello o.jpg"

    weirdly, by removing the spaces the function worked just fine.

    Image name: "hello_o.jpg"

提交回复
热议问题