rpi: add rpiCameraFlickerPeriod (#3463) (#3667)

This commit is contained in:
Alessandro Ros
2024-08-19 11:22:54 +02:00
committed by GitHub
parent 6256d0b893
commit f4051eb63d
7 changed files with 9 additions and 1 deletions
+2
View File
@@ -420,6 +420,8 @@ components:
type: number
rpiCameraAfWindow:
type: string
rpiCameraFlickerPeriod:
type: integer
rpiCameraTextOverlayEnable:
type: boolean
rpiCameraTextOverlay:
+1
View File
@@ -161,6 +161,7 @@ type Path struct {
RPICameraAfSpeed string `json:"rpiCameraAfSpeed"`
RPICameraLensPosition float64 `json:"rpiCameraLensPosition"`
RPICameraAfWindow string `json:"rpiCameraAfWindow"`
RPICameraFlickerPeriod int `json:"rpiCameraFlickerPeriod"`
RPICameraTextOverlayEnable bool `json:"rpiCameraTextOverlayEnable"`
RPICameraTextOverlay string `json:"rpiCameraTextOverlay"`
+1
View File
@@ -24,6 +24,7 @@ func pathConfCanBeUpdated(oldPathConf *conf.Path, newPathConf *conf.Path) bool {
clone.RPICameraSaturation = newPathConf.RPICameraSaturation
clone.RPICameraSharpness = newPathConf.RPICameraSharpness
clone.RPICameraExposure = newPathConf.RPICameraExposure
clone.RPICameraFlickerPeriod = newPathConf.RPICameraFlickerPeriod
clone.RPICameraAWB = newPathConf.RPICameraAWB
clone.RPICameraAWBGains = newPathConf.RPICameraAWBGains
clone.RPICameraDenoise = newPathConf.RPICameraDenoise
@@ -1 +1 @@
v2.0.0
v2.1.0
@@ -34,6 +34,7 @@ type params struct {
AfSpeed string
LensPosition float64
AfWindow string
FlickerPeriod int
TextOverlayEnable bool
TextOverlay string
}
@@ -59,6 +59,7 @@ func paramsFromConf(logLevel conf.LogLevel, cnf *conf.Path) params {
AfSpeed: cnf.RPICameraAfSpeed,
LensPosition: cnf.RPICameraLensPosition,
AfWindow: cnf.RPICameraAfWindow,
FlickerPeriod: cnf.RPICameraFlickerPeriod,
TextOverlayEnable: cnf.RPICameraTextOverlayEnable,
TextOverlay: cnf.RPICameraTextOverlay,
}
+2
View File
@@ -582,6 +582,8 @@ pathDefaults:
# Specifies the autofocus window, in the form x,y,width,height where the coordinates
# are given as a proportion of the entire image.
rpiCameraAfWindow:
# Manual flicker correction period, in microseconds.
rpiCameraFlickerPeriod: 0
# enables printing text on each frame.
rpiCameraTextOverlayEnable: false
# text that is printed on each frame.