mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 00:45:07 +03:00
libtuning: Add module for lux calibration
For the lux algorithm, reference values get calculated based on a tuning image taken at a known lux level. The reference data contains the mean Y of the image, lux level, exposure time, gain and aperture. This module calculates these values for insertion into the tuning file. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
This commit is contained in:
parent
bab4db2d6d
commit
a783a90dec
3 changed files with 98 additions and 0 deletions
22
utils/tuning/libtuning/modules/lux/rkisp1.py
Normal file
22
utils/tuning/libtuning/modules/lux/rkisp1.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#
|
||||
# Copyright (C) 2024, Ideas on Board
|
||||
#
|
||||
# Lux module for tuning rkisp1
|
||||
|
||||
from .lux import Lux
|
||||
|
||||
|
||||
class LuxRkISP1(Lux):
|
||||
hr_name = 'Lux (RkISP1)'
|
||||
out_name = 'Lux'
|
||||
|
||||
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:
|
||||
return self.calculate_lux_reference_values(images)
|
Loading…
Add table
Add a link
Reference in a new issue