Getting error - 'could not find a writer'while giving imshow, imwrite command opencv

后端 未结 4 1526
情话喂你
情话喂你 2021-01-04 14:24

I am a beginner at opencv and python. I have just installed opencv2.4.9 and enthought canopy-32bit. I am getting error for the following:

import cv2
image =          


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-04 14:43

    Add an extension for the output file like .jpg, .png, etc based on the application.

    For example in this case you could use,

    import cv2
    image = cv2.imread('Lena.jpg')
    cv2.imwrite('Mypic.jpg',image)
    

提交回复
热议问题