summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_awb.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/raspberrypi/ctt/ctt_awb.py')
-rw-r--r--utils/raspberrypi/ctt/ctt_awb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/raspberrypi/ctt/ctt_awb.py b/utils/raspberrypi/ctt/ctt_awb.py
index 63feef24..71ad6b0e 100644
--- a/utils/raspberrypi/ctt/ctt_awb.py
+++ b/utils/raspberrypi/ctt/ctt_awb.py
@@ -17,7 +17,7 @@ def awb(Cam, cal_cr_list, cal_cb_list, plot):
"""
condense alsc calibration tables into one dictionary
"""
- if cal_cr_list == None:
+ if cal_cr_list is None:
colour_cals = None
else:
colour_cals = {}
@@ -315,7 +315,7 @@ def get_alsc_patches(Img, colour_cals, grey=True):
b_patchs = patches[3] - Img.blacklevel_16
g_patchs = (patches[1]+patches[2])/2 - Img.blacklevel_16
- if colour_cals == None:
+ if colour_cals is None:
return r_patchs, b_patchs, g_patchs
"""
find where image colour fits in alsc colour calibration tables