IOError: cannot identify image file

后端 未结 2 1850
不思量自难忘°
不思量自难忘° 2021-01-14 08:24

Can anyone tell why PIL can\'t open this PNG file?

https://b75094855c6274df1cf8559f089f485661ae1156.googledrive.com/host/0B56ak7W-HmqAX005c3g5eTlBakE/8.png

I

2条回答
  •  深忆病人
    2021-01-14 09:15

    try to import cv2

    >>> from PIL import Image
    >>> import cv2
    >>> im = cv2.imread("8.png")
    >>> im = cv2.imwrite("8.png")
    

    i hope its working...

提交回复
热议问题