diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-02 03:32:00 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-13 16:59:51 +0300 |
commit | a49fd8ea1dd98207662d4c902f1e6897183ef482 (patch) | |
tree | 5aa39e5e0ab93b7e109a91a15872ba24fedba8b1 /utils/raspberrypi/ctt/ctt_macbeth_locator.py | |
parent | 67f9605a7faef954dc3242450de0cf10ae215514 (diff) |
utils: raspberrypi: ctt: Fix pycodestyle E116 and E117
E116 unexpected indentation (comment)
E117 over-indented (comment)
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.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/utils/raspberrypi/ctt/ctt_macbeth_locator.py b/utils/raspberrypi/ctt/ctt_macbeth_locator.py index 05d1bd43..4e666b0f 100644 --- a/utils/raspberrypi/ctt/ctt_macbeth_locator.py +++ b/utils/raspberrypi/ctt/ctt_macbeth_locator.py @@ -450,14 +450,14 @@ def get_macbeth_chart(img, ref_data): """ in_border = True # for p in mac_guess[0]: - # pptest = cv2.pointPolygonTest( - # img_con, - # tuple(p), - # False - # ) - # if pptest == -1: - # in_border = False - # break + # pptest = cv2.pointPolygonTest( + # img_con, + # tuple(p), + # False + # ) + # if pptest == -1: + # in_border = False + # break if in_border: mac_mid = np.mean(mac_guess, @@ -499,9 +499,9 @@ def get_macbeth_chart(img, ref_data): else: clustering.fit(mac_mids_list) # try: - # clustering.fit(mac_mids_list) + # clustering.fit(mac_mids_list) # except RuntimeWarning as error: - # return(0, None, None, error) + # return(0, None, None, error) """ create list of all clusters @@ -549,9 +549,9 @@ def get_macbeth_chart(img, ref_data): # copy = cv2.cvtColor(copy, cv2.COLOR_GRAY2RGB) # copy = cv2.resize(copy, None, fx=2, fy=2) # for clus in clus_list: - # centroid = tuple(2*np.round(clus[2]).astype(np.int32)) - # cv2.circle(copy, centroid, 7, (255, 0, 0), -1) - # cv2.circle(copy, centroid, 2, (0, 0, 255), -1) + # centroid = tuple(2*np.round(clus[2]).astype(np.int32)) + # cv2.circle(copy, centroid, 7, (255, 0, 0), -1) + # cv2.circle(copy, centroid, 2, (0, 0, 255), -1) # represent(copy) """ |