| 1 |
# SPDX-License-Identifier: GPL-2.0-or-later |
| 2 |
# |
| 3 |
# Copyright (C) 2024, Paul Elder <[email protected]> |
| 4 |
# Copyright (C) 2024, Ideas on Board |
| 5 |
# |
| 6 |
# Ccm module for tuning rkisp1 |
| 7 |
|
| 8 |
from .ccm import CCM |
| 9 |
|
| 10 |
|
| 11 |
class CCMRkISP1(CCM): |
| 12 |
hr_name = 'Crosstalk Correction (RkISP1)' |
| 13 |
out_name = 'Ccm' |
| 14 |
|
| 15 |
def __init__(self, **kwargs): |
| 16 |
super().__init__(**kwargs) |
| 17 |
|
| 18 |
# We don't need anything from the config file. |
| 19 |
def validate_config(self, config: dict) -> bool: |
| 20 |
return True |
| 21 |
|
| 22 |
def process(self, config: dict, images: list, outputs: dict) -> dict: |
| 23 |
output = {} |
| 24 |
|
| 25 |
ccms = self.do_calibration(images) |
| 26 |
output['ccms'] = ccms |
| 27 |
|
| 28 |
return output |