summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_ransac.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/raspberrypi/ctt/ctt_ransac.py')
-rw-r--r--utils/raspberrypi/ctt/ctt_ransac.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/raspberrypi/ctt/ctt_ransac.py b/utils/raspberrypi/ctt/ctt_ransac.py
index a1513625..f7a722e0 100644
--- a/utils/raspberrypi/ctt/ctt_ransac.py
+++ b/utils/raspberrypi/ctt/ctt_ransac.py
@@ -11,7 +11,7 @@ scale = 2
"""
constructs normalised macbeth chart corners for ransac algorithm
"""
-def get_square_verts(c_err = 0.05, scale = scale):
+def get_square_verts(c_err=0.05, scale=scale):
"""
define macbeth chart corners
"""
@@ -57,13 +57,13 @@ def get_square_verts(c_err = 0.05, scale = scale):
# print(square_verts)
return np.array(square_verts, np.float32), mac_norm
-def get_square_centres(c_err = 0.05, scale=scale):
+def get_square_centres(c_err=0.05, scale=scale):
"""
define macbeth square centres
"""
verts, mac_norm = get_square_verts(c_err, scale=scale)
- centres = np.mean(verts, axis = 1)
+ centres = np.mean(verts, axis=1)
# print('centres')
# print(centres)
return np.array(centres, np.float32)