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

后端 未结 13 2169
醉酒成梦
醉酒成梦 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:32

    In my case I did a wrong modification in the image.

    I was able to find the problem checking the image shape.

    print img.shape
    

提交回复
热议问题