找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 91|回复: 0

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

[复制链接]

46

主题

0

回帖

294

积分

管理员

积分
294
发表于 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

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们|东莞市微象电子 ( 粤ICP备2023103692号-2 )

GMT+8, 2026-3-2 21:03 , Processed in 0.066689 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表