_bytes = open('xxxx.webp', 'rb').read() _buf = np.frombuffer(_bytes, np.uint8) _img = cv2.imdecode(_buf, cv2.IMREAD_UNCHANGED) assert _img is not None # returns None
(I'm using OpenCV 4.0.1)
1 | initial version |
_bytes = open('xxxx.webp', 'rb').read() _buf = np.frombuffer(_bytes, np.uint8) _img = cv2.imdecode(_buf, cv2.IMREAD_UNCHANGED) assert _img is not None # returns None
(I'm using OpenCV 4.0.1)
_bytes = open('xxxx.webp', 'rb').read() _buf = np.frombuffer(_bytes, np.uint8) _img = cv2.imdecode(_buf, cv2.IMREAD_UNCHANGED) assert _img is not None # returns None
(I'm using OpenCV 4.0.1)
(I'm using OpenCV 4.0.1)
_bytes = open('xxxx.webp', 'rb').read()
_buf = np.frombuffer(_bytes, np.uint8)
_img = cv2.imdecode(_buf, cv2.IMREAD_UNCHANGED)
assert _img is not None # returns NoneNone
(I'm using OpenCV 4.0.1)