summaryrefslogtreecommitdiff
path: root/utils/tuning/libtuning/modules/ccm/rkisp1.py
blob: be0252d9c1c431f93cbcc5a358fe690483867716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright (C) 2024, Paul Elder <paul.elder@ideasonboard.com>
# Copyright (C) 2024, Ideas on Board
#
# Ccm module for tuning rkisp1

from .ccm import CCM


class CCMRkISP1(CCM):
    hr_name = 'Crosstalk Correction (RkISP1)'
    out_name = 'Ccm'

    def __init__(self, **kwargs):
        super().__init__(**kwargs)

    # We don't need anything from the config file.
    def validate_config(self, config: dict) -> bool:
        return True

    def process(self, config: dict, images: list, outputs: dict) -> dict:
        output = {}

        ccms = self.do_calibration(images)
        output['ccms'] = ccms

        return output