1 | initial version |
np.frombuffer is the right direction. that's for raw bitmap data without a header.
imdecode is not. imdecode/imread is for image containers (.bmp, ...)
you use np.frombuffer, then reshape the data as needed: npdata.shape = (height, width, numchannels)
.
post your data for more precise instructions.