树莓派图传 摄像头/图像翻转
问题
本文用以解决图传摄像头物理安装位置和显示
常见情况是摄像头倒立安装,图传的图片也倒立,用起来就比较难受
解决方法
修改配置文件openhd-settings-1.txt
,旧版本在EXTRAPARAMS
增加参数 -hf -vf
,新版本有配置rpi0_mirrormode
项目即可。下面的是2.0.12b的配置项目。
# 0 Normal
# 1 Mirror
# 2 V-Flip
# 3 Mirror And V-Flip(180 Degree Rotate)
rpi0_mirrormode=3
# There are extra paramaters available beyond what is above or already applied in the code, see the RPI forum for all settings.
# Do not use the following in the EXTRAPARAMS as they are already applied:
# -cd -n -fl -ih -pf -if -ex -mm -awb -sh -co -br -sa -hf -vf
EXTRAPARAMS=""