summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-02 03:32:00 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-13 16:58:54 +0300
commit23db936a1f66c74379063394f8d8c647e939c920 (patch)
tree47adc84c70f9752a46fd5460c2a251e60b459e92 /utils/raspberrypi/ctt
parente31b104fd1bf39f6d9d466b6047a24a78da6f15c (diff)
utils: raspberrypi: ctt: Fix pycodestyle E303
E303 too many blank lines Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Diffstat (limited to 'utils/raspberrypi/ctt')
-rwxr-xr-xutils/raspberrypi/ctt/ctt.py2
-rw-r--r--utils/raspberrypi/ctt/ctt_alsc.py1
-rw-r--r--utils/raspberrypi/ctt/ctt_macbeth_locator.py3
-rw-r--r--utils/raspberrypi/ctt/ctt_noise.py1
4 files changed, 0 insertions, 7 deletions
diff --git a/utils/raspberrypi/ctt/ctt.py b/utils/raspberrypi/ctt/ctt.py
index 07230fe3..ff264176 100755
--- a/utils/raspberrypi/ctt/ctt.py
+++ b/utils/raspberrypi/ctt/ctt.py
@@ -193,7 +193,6 @@ class Camera:
}
}
-
"""
Perform colour correction calibrations by comparing macbeth patch colours
to standard macbeth chart colours.
@@ -770,7 +769,6 @@ def run_ctt(json_output, directory, config, log_output):
except FileNotFoundError:
raise ArgError('\n\nError: Input image directory not found!')
-
"""
preform calibrations as long as check_imgs returns True
If alsc is activated then it must be done before awb and ccm since the alsc
diff --git a/utils/raspberrypi/ctt/ctt_alsc.py b/utils/raspberrypi/ctt/ctt_alsc.py
index e768f8d6..b697ed3e 100644
--- a/utils/raspberrypi/ctt/ctt_alsc.py
+++ b/utils/raspberrypi/ctt/ctt_alsc.py
@@ -253,7 +253,6 @@ def get_sigma(Cam, cal_cr_list, cal_cb_list):
sigma_b = max(sigma_bs) if sigma_bs else 0.005
Cam.log += '\nMaximum sigmas: Red = {} Blue = {}'.format(sigma_r, sigma_b)
-
# print(sigma_rs, sigma_bs)
# print(sigma_r, sigma_b)
return sigma_r, sigma_b
diff --git a/utils/raspberrypi/ctt/ctt_macbeth_locator.py b/utils/raspberrypi/ctt/ctt_macbeth_locator.py
index c3016f9a..94bbf580 100644
--- a/utils/raspberrypi/ctt/ctt_macbeth_locator.py
+++ b/utils/raspberrypi/ctt/ctt_macbeth_locator.py
@@ -144,7 +144,6 @@ def find_macbeth(Cam, img, mac_config=(0, 0)):
w_best, h_best = w_inc, h_inc
d_best = 1
-
"""
scale 2
"""
@@ -697,7 +696,6 @@ def get_macbeth_chart(img, ref_data):
Following code is mostly representation for debugging purposes
"""
-
"""
draw macbeth corners and centres on image
"""
@@ -731,7 +729,6 @@ def get_macbeth_chart(img, ref_data):
# cv2.imshow('Macbeth', best_map_col)
# represent(copy)
-
"""
rescale coordinates to original image size
"""
diff --git a/utils/raspberrypi/ctt/ctt_noise.py b/utils/raspberrypi/ctt/ctt_noise.py
index 2d021e55..ba57f1d1 100644
--- a/utils/raspberrypi/ctt/ctt_noise.py
+++ b/utils/raspberrypi/ctt/ctt_noise.py
@@ -39,7 +39,6 @@ def noise(Cam, Img, plot):
means = np.clip(np.array(means), 0, None)
sq_means = np.sqrt(means)
-
"""
least squares fit model
"""