OpenCV & Python - Image too big to display

后端 未结 7 2028
猫巷女王i
猫巷女王i 2020-12-04 23:33

I have an image that is 6400 × 3200, while my screen is 1280 x 800. Therefore, the image needs to be resized for display only. I am using Python and OpenCV 2.4.9. According

7条回答
  •  死守一世寂寞
    2020-12-04 23:59

    Try this:

    image = cv2.imread("img/Demo.jpg")
    image = cv2.resize(image,(240,240))
    

    The image is now resized. Displaying it will render in 240x240.

提交回复
热议问题