[PATCH v5 6/8] libtuning: Fix access to color member in ctt_awb.awb()

Stefan Klug stefan.klug at ideasonboard.com
Fri Dec 6 15:52:26 CET 2024


Fix the access to the color temperature member of the Img object.

Signed-off-by: Stefan Klug <stefan.klug at ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder at ideasonboard.com>
---
 utils/tuning/libtuning/ctt_awb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/tuning/libtuning/ctt_awb.py b/utils/tuning/libtuning/ctt_awb.py
index 5494bdb5c103..117612f2582a 100644
--- a/utils/tuning/libtuning/ctt_awb.py
+++ b/utils/tuning/libtuning/ctt_awb.py
@@ -304,7 +304,7 @@ def get_alsc_patches(Img, colour_cals, grey=True):
     """
     if grey:
         cen_coords = Img.cen_coords[3::4]
-        col = Img.col
+        col = Img.color
         patches = [np.array(Img.patches[i]) for i in Img.order]
         r_patchs = patches[0][3::4] - Img.blacklevel_16
         b_patchs = patches[3][3::4] - Img.blacklevel_16
-- 
2.43.0



More information about the libcamera-devel mailing list