summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_tools.py
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 17:00:13 +0300
commit33c4221e8700e15db55994e510d86225d6cd9ece (patch)
tree19d611a79ec39e3075b15bf90037f73de6370afa /utils/raspberrypi/ctt/ctt_tools.py
parent2b21c6ac861c5844f9e4535a43a514f979bfd133 (diff)
utils: raspberrypi: ctt: Fix pycodestyle E305
E305 expected 2 blank lines after class or function definition 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/ctt_tools.py')
-rw-r--r--utils/raspberrypi/ctt/ctt_tools.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/raspberrypi/ctt/ctt_tools.py b/utils/raspberrypi/ctt/ctt_tools.py
index 3a2fb4af..d5d64d47 100644
--- a/utils/raspberrypi/ctt/ctt_tools.py
+++ b/utils/raspberrypi/ctt/ctt_tools.py
@@ -48,6 +48,8 @@ def get_config(dictt, key, default, ttype):
except (KeyError, ValueError):
val = default
return val
+
+
"""
argument parser
"""
@@ -67,6 +69,8 @@ def parse_input():
if json_output is None:
raise ArgError('\n\nERROR! No output json given.')
return json_output, directory, config, log_path
+
+
"""
custom arg and macbeth error class
"""
@@ -75,6 +79,7 @@ class ArgError(Exception):
class MacbethError(Exception):
pass
+
"""
correlation function to quantify match
"""
@@ -84,6 +89,7 @@ def correlate(im1, im2):
cor = np.corrcoef(f1, f2)
return cor[0][1]
+
"""
get list of files from directory
"""
@@ -94,6 +100,7 @@ def get_photos(directory='photos'):
filename_list.append(filename)
return filename_list
+
"""
display image for debugging... read at your own risk...
"""