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>
This commit is contained in:
parent
965cae72a7
commit
23f9f46c8a
2 changed files with 10 additions and 12 deletions
|
@ -363,8 +363,7 @@ def get_macbeth_chart(img, ref_data):
|
|||
"""
|
||||
find Contours in image
|
||||
"""
|
||||
conts, _ = cv2.findContours(edges,
|
||||
cv2.RETR_TREE,
|
||||
conts, _ = cv2.findContours(edges, cv2.RETR_TREE,
|
||||
cv2.CHAIN_APPROX_NONE)
|
||||
if len(conts) == 0:
|
||||
raise MacbethError(
|
||||
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue