logo

为什么img=img.to_grayscale()可以使用,但使用img=img.to_rgb()会出现错误?

2023-10-03 23:22
A
_2giq

错误:AttributeError: 'Image' object has no attribute 'to_rgb'

img=img.to_grayscale()

img=img.to_rgb()

2023-10-11 20:21
I
网红小智智 星瞳科技

https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.image.html#image.Image.image.to_rgb565

是to_rgb565而不是to_rgb