summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_macbeth_locator.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 16:58:12 +0300
commit23f9f46c8a42ef63cd55d7b841e6065ba222f870 (patch)
tree5c52a47f35f0477e573de70c41f4021924a93192 /utils/raspberrypi/ctt/ctt_macbeth_locator.py
parent965cae72a79e870f68c6bc28231d701f3518f246 (diff)
utils: raspberrypi: ctt: Fix pycodestyle E128
E128 continuation line under-indented for visual indent 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_macbeth_locator.py')
-rw-r--r--utils/raspberrypi/ctt/ctt_macbeth_locator.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/raspberrypi/ctt/ctt_macbeth_locator.py b/utils/raspberrypi/ctt/ctt_macbeth_locator.py
index 55ab4fdb..63dbc4a1 100644
--- a/utils/raspberrypi/ctt/ctt_macbeth_locator.py
+++ b/utils/raspberrypi/ctt/ctt_macbeth_locator.py
@@ -363,9 +363,8 @@ def get_macbeth_chart(img, ref_data):
"""
find Contours in image
"""
- conts, _ = cv2.findContours(edges,
- cv2.RETR_TREE,
- cv2.CHAIN_APPROX_NONE)
+ conts, _ = cv2.findContours(edges, cv2.RETR_TREE,
+ cv2.CHAIN_APPROX_NONE)
if len(conts) == 0:
raise MacbethError(
'\nWARNING: No macbeth chart found!'
@@ -381,8 +380,7 @@ def get_macbeth_chart(img, ref_data):
conts_per = []
for i in range(len(conts)):
per = cv2.arcLength(conts[i], True)
- poly = cv2.approxPolyDP(conts[i],
- epsilon*per, True)
+ poly = cv2.approxPolyDP(conts[i], epsilon*per, True)
if len(poly) == 4 and cv2.isContourConvex(poly):
conts_per.append((poly, per))