Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
python cv2.imread,标志 cv2.IMREAD_COLOR 和 CV2.IMREAD_ANYCOLOR 有什么区别?
来自文档
IMREAD_COLOR :如果设置,总是将图像转换为 3 通道 BGR 彩色图像。
IMREAD_ANYCOLOR :如果设置,则以任何可能的颜色格式读取图像。
因此,如果 ANYCOLOR 最终选择 RGB 进行读取,您可能不会注意到差异。