Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv2 imdecode webp format fails

_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)

cv2 imdecode webp format fails

_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)

cv2 imdecode webp format fails

(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

None

(I'm using OpenCV 4.0.1)