utils: tuning: rkisp1: Add skeletal AGC to the rkisp1 tuning script
Add the skeletal AGC module to the rkisp1 tuning script. For now it just spits out hardcoded values. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
This commit is contained in:
parent
4eb3ff2350
commit
7d8a9e054e
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,7 @@ import libtuning as lt
|
||||||
from libtuning.parsers import YamlParser
|
from libtuning.parsers import YamlParser
|
||||||
from libtuning.generators import YamlOutput
|
from libtuning.generators import YamlOutput
|
||||||
from libtuning.modules.lsc import LSCRkISP1
|
from libtuning.modules.lsc import LSCRkISP1
|
||||||
|
from libtuning.modules.agc import AGCRkISP1
|
||||||
|
|
||||||
tuner = lt.Tuner('RkISP1')
|
tuner = lt.Tuner('RkISP1')
|
||||||
tuner.add(LSCRkISP1(
|
tuner.add(LSCRkISP1(
|
||||||
|
@ -32,9 +33,10 @@ tuner.add(LSCRkISP1(
|
||||||
# values. This can also be a custom function.
|
# values. This can also be a custom function.
|
||||||
smoothing_function=lt.smoothing.MedianBlur(3),
|
smoothing_function=lt.smoothing.MedianBlur(3),
|
||||||
))
|
))
|
||||||
|
tuner.add(AGCRkISP1(debug=[lt.Debug.Plot]))
|
||||||
tuner.set_input_parser(YamlParser())
|
tuner.set_input_parser(YamlParser())
|
||||||
tuner.set_output_formatter(YamlOutput())
|
tuner.set_output_formatter(YamlOutput())
|
||||||
tuner.set_output_order([LSCRkISP1])
|
tuner.set_output_order([AGCRkISP1, LSCRkISP1])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(tuner.run(sys.argv))
|
sys.exit(tuner.run(sys.argv))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue