summaryrefslogtreecommitdiff
path: root/utils/tuning
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2024-02-29 18:34:14 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2024-06-14 23:48:48 +0900
commit7d8a9e054e642ec18a3f97e6e646990f1eaf46ed (patch)
treeb6af8f28dda0bc08c0035f4eb258173f09d0e7fa /utils/tuning
parent4eb3ff2350f6cf38fa72dfcfd98a41c2cda4ad95 (diff)
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>
Diffstat (limited to 'utils/tuning')
-rwxr-xr-xutils/tuning/rkisp1.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/tuning/rkisp1.py b/utils/tuning/rkisp1.py
index 517c791e..d0ce15d5 100755
--- a/utils/tuning/rkisp1.py
+++ b/utils/tuning/rkisp1.py
@@ -11,6 +11,7 @@ import libtuning as lt
from libtuning.parsers import YamlParser
from libtuning.generators import YamlOutput
from libtuning.modules.lsc import LSCRkISP1
+from libtuning.modules.agc import AGCRkISP1
tuner = lt.Tuner('RkISP1')
tuner.add(LSCRkISP1(
@@ -32,9 +33,10 @@ tuner.add(LSCRkISP1(
# values. This can also be a custom function.
smoothing_function=lt.smoothing.MedianBlur(3),
))
+tuner.add(AGCRkISP1(debug=[lt.Debug.Plot]))
tuner.set_input_parser(YamlParser())
tuner.set_output_formatter(YamlOutput())
-tuner.set_output_order([LSCRkISP1])
+tuner.set_output_order([AGCRkISP1, LSCRkISP1])
if __name__ == '__main__':
sys.exit(tuner.run(sys.argv))