To *_* Do 19 color-management camera
在 Linux 上,我的网络摄像头工作正常,但是当使用人工照明时,白平衡太红了。在自然光照下颜色看起来很好。有没有办法校准颜色或有某种形式的自动调整有效?
我曾经guvcview
修改过这些设置,但还没有找到合适的设置组合来显示自然色彩。
tel*_*coM 25
至少在我的网络摄像头上,该v4l2-ctl -l
命令显示了与白平衡相关的两个设置:
# v4l2-ctl -l
[...]
white_balance_temperature_auto (bool) : default=1 value=1
[...]
white_balance_temperature (int) : min=2800 max=6500 step=1 default=4000 value=4000 flags=inactive
[...]
Run Code Online (Sandbox Code Playgroud)
我必须将white_balance_temperature_auto
设置设置为 0 才能使white_balance_temperature
设置生效。
# v4l2-ctl -c white_balance_temperature_auto=0
# v4l2-ctl -c white_balance_temperature=3000 # or whatever value you want
Run Code Online (Sandbox Code Playgroud)
请注意,该white_balance_temperature
设置控制相机假定的照明环境,因此减小该值会使相机假定环境光更红,因此它会使图片更蓝以进行补偿。
使用该-d
选项可以使用特定的视频设备,例如-d /dev/video0
.