Issue in converting the Pixels values to image

So it’s only 1 byte per pixel


na = np.array(pixels, dtype=np.uint8).reshape((int(h),int(w),1))