Message ID | 20250808141315.413839-17-stefan.klug@ideasonboard.com |
---|---|
State | New |
Headers | show |
Series |
|
Related | show |
Quoting Stefan Klug (2025-08-08 15:12:54) > 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> > > --- > > Changes in v3: > - Collected tag > --- > utils/tuning/rkisp1.py | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/utils/tuning/rkisp1.py b/utils/tuning/rkisp1.py > index 179d920c05df..2e6f70401fc4 100755 > --- a/utils/tuning/rkisp1.py > +++ b/utils/tuning/rkisp1.py > @@ -48,16 +48,19 @@ 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}, > + 'MinExposureValue': -4.0}) > > 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)) > -- > 2.48.1 >
diff --git a/utils/tuning/rkisp1.py b/utils/tuning/rkisp1.py index 179d920c05df..2e6f70401fc4 100755 --- a/utils/tuning/rkisp1.py +++ b/utils/tuning/rkisp1.py @@ -48,16 +48,19 @@ 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}, + 'MinExposureValue': -4.0}) 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))