File: rkisp1.py

package info (click to toggle)
libcamera 0.4.0-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,904 kB
  • sloc: cpp: 75,318; python: 17,996; ansic: 12,593; sh: 1,258; makefile: 56
file content (28 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (4)
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