重现步骤
img = pl.get_frame()
print(img.shape)
img_save = image.Image(224, 224, image.RGB888, alloc=image.ALLOC_REF,data=img.to_bytes()).to_rgb565()
path = "/data/demo.jpg"
img_save.save(path)
保存结果为九宫格,这是为什么呢
重现步骤
img = pl.get_frame()
print(img.shape)
img_save = image.Image(224, 224, image.RGB888, alloc=image.ALLOC_REF,data=img.to_bytes()).to_rgb565()
path = "/data/demo.jpg"
img_save.save(path)
保存结果为九宫格,这是为什么呢