image = np.random.randint(0,255,size=(224,224,3)).astype(np.uint8)
import imageio imageio.imwrite('test.png',image)
test.png是这样的: