openaicam 发表于 2026-1-26 17:07:15

树莓派摄像头拍照图像色彩调整

当遇到树莓派摄像头拍照出来的图片色彩不理想的时候,可以尝试以下方法进行修正
使用系统预设的白平衡模式:
# 日光
rpicam-still -o test.jpg --awb daylight

# 阴天
rpicam-still -o test.jpg --awb cloudy

# 白炽灯
rpicam-still -o test.jpg --awb tungsten

# 荧光灯
rpicam-still -o test.jpg --awb fluorescent

也可以使用预览模式快速查看
rpicam-hello -t 0--awb daylight
rpicam-hello -t 0--awb cloudy
rpicam-hello -t 0--awb tungsten
rpicam-hello -t 0--awb fluorescent


还可以手动进行微调:

当前问题解决方案
图像偏黄/偏红降低红增益,提高蓝增益 → --awbgains 1.0,1.5
图像偏蓝/偏青提高红增益,降低蓝增益 → --awbgains 1.3,1.0
颜色不准先用 --awb auto 拍照,再微调


比如IMX378摄像头推荐值:

rpicam-still -o test.jpg --awbgains 2.1,1.9

页: [1]
查看完整版本: 树莓派摄像头拍照图像色彩调整