我面临的问题是,当我向 cnn 提供灰度图像数据集时,它会将其读取为 3 通道图像,而不是单通道图像。
那么如何将3通道图像转换为单通道灰度图像呢?
python rgb opencv image-processing shapes
image-processing ×1
opencv ×1
python ×1
rgb ×1
shapes ×1