【发布时间】:2021-09-17 02:50:04
【问题描述】:
我正在使用 tensorflow lite 模型和颤振,其中模型接收灰度图像作为输入。有没有办法使用颤振将RGB图像转换为灰度图像?
【问题讨论】:
-
请注意,图像格式之间的转换不是
artificial-intelligence问题(已删除标记)。
我正在使用 tensorflow lite 模型和颤振,其中模型接收灰度图像作为输入。有没有办法使用颤振将RGB图像转换为灰度图像?
【问题讨论】:
artificial-intelligence 问题(已删除标记)。
ColorFiltered 小部件可以提供帮助。请注意,这也会影响透明像素。
ColorFiltered(
colorFilter: const ColorFilter.mode(
Colors.grey,
BlendMode.saturation,
),
child: Your Image Here),
)
【讨论】: