tuning: rksip1: Add a static WideDynamicRange entry
Add a static WideDynamicRange entry that gets added by default. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
f62a1498e9
commit
2f7c474479
@@ -48,16 +48,18 @@ lsc = LSCRkISP1(debug=[lt.Debug.Plot],
|
||||
# values. This can also be a custom function.
|
||||
smoothing_function=lt.smoothing.MedianBlur(3),)
|
||||
lux = LuxRkISP1(debug=[lt.Debug.Plot])
|
||||
wdr = StaticModule('WideDynamicRange',
|
||||
{'ExposureConstraint': {'MaxBrightPixels': 0.02, 'yTarget': 0.95}})
|
||||
|
||||
tuner = lt.Tuner('RkISP1')
|
||||
tuner.add([agc, awb, blc, ccm, color_processing, filter, gamma_out, lsc, lux, compress])
|
||||
tuner.add([agc, awb, blc, ccm, color_processing, filter, gamma_out, lsc, lux, wdr, compress])
|
||||
tuner.set_input_parser(YamlParser())
|
||||
tuner.set_output_formatter(YamlOutput())
|
||||
|
||||
# Bayesian AWB uses the lux value, so insert the lux algorithm before AWB.
|
||||
# Compress is parameterized by others, so add it at the end.
|
||||
tuner.set_output_order([agc, lux, awb, blc, ccm, color_processing,
|
||||
filter, gamma_out, lsc, compress])
|
||||
filter, gamma_out, lsc, wdr, compress])
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(tuner.run(sys.argv))
|
||||
|
||||
Reference in New Issue
Block a user