From patchwork Tue May 12 00:03:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3765 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 337D760E17 for ; Tue, 12 May 2020 02:03:38 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Ovsoo5wx"; dkim-atps=neutral Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A6B3533E; Tue, 12 May 2020 02:03:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1589241817; bh=UIRyqIApbSZYzAzjBh2jBmdAR79VG0JLcD9zJTA12z8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ovsoo5wxVgpm36Yrt/cfjeAxUteCXkS+LjoDrU0LIBj06IVaey48VpqDH+5rnZ6fF YY0+2IMq4IxzxtcgDyr0wqTHPx8lqmrbaKiDBrfcY10W4EBBTGU5DLV4aDjW1XOTH0 zWxXDg8JtyKaTG9yPsdjUvdY7lGbn5osuWEUFoVM= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 12 May 2020 03:03:09 +0300 Message-Id: <20200512000322.11753-12-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200512000322.11753-1-laurent.pinchart@ideasonboard.com> References: <20200512000322.11753-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 11/24] utils: raspberrypi: ctt: Fix pycodestyle E303 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 00:03:39 -0000 E303 too many blank lines Signed-off-by: Laurent Pinchart --- utils/raspberrypi/ctt/ctt.py | 2 -- utils/raspberrypi/ctt/ctt_alsc.py | 1 - utils/raspberrypi/ctt/ctt_macbeth_locator.py | 3 --- utils/raspberrypi/ctt/ctt_noise.py | 1 - 4 files changed, 7 deletions(-) diff --git a/utils/raspberrypi/ctt/ctt.py b/utils/raspberrypi/ctt/ctt.py index 07230fe3f709..ff264176f040 100755 --- a/utils/raspberrypi/ctt/ctt.py +++ b/utils/raspberrypi/ctt/ctt.py @@ -193,7 +193,6 @@ class Camera: } } - """ Perform colour correction calibrations by comparing macbeth patch colours to standard macbeth chart colours. @@ -770,7 +769,6 @@ def run_ctt(json_output, directory, config, log_output): except FileNotFoundError: raise ArgError('\n\nError: Input image directory not found!') - """ preform calibrations as long as check_imgs returns True If alsc is activated then it must be done before awb and ccm since the alsc diff --git a/utils/raspberrypi/ctt/ctt_alsc.py b/utils/raspberrypi/ctt/ctt_alsc.py index e768f8d648a1..b697ed3e22b4 100644 --- a/utils/raspberrypi/ctt/ctt_alsc.py +++ b/utils/raspberrypi/ctt/ctt_alsc.py @@ -253,7 +253,6 @@ def get_sigma(Cam, cal_cr_list, cal_cb_list): sigma_b = max(sigma_bs) if sigma_bs else 0.005 Cam.log += '\nMaximum sigmas: Red = {} Blue = {}'.format(sigma_r, sigma_b) - # print(sigma_rs, sigma_bs) # print(sigma_r, sigma_b) return sigma_r, sigma_b diff --git a/utils/raspberrypi/ctt/ctt_macbeth_locator.py b/utils/raspberrypi/ctt/ctt_macbeth_locator.py index c3016f9a3c1d..94bbf580db84 100644 --- a/utils/raspberrypi/ctt/ctt_macbeth_locator.py +++ b/utils/raspberrypi/ctt/ctt_macbeth_locator.py @@ -144,7 +144,6 @@ def find_macbeth(Cam, img, mac_config=(0, 0)): w_best, h_best = w_inc, h_inc d_best = 1 - """ scale 2 """ @@ -697,7 +696,6 @@ def get_macbeth_chart(img, ref_data): Following code is mostly representation for debugging purposes """ - """ draw macbeth corners and centres on image """ @@ -731,7 +729,6 @@ def get_macbeth_chart(img, ref_data): # cv2.imshow('Macbeth', best_map_col) # represent(copy) - """ rescale coordinates to original image size """ diff --git a/utils/raspberrypi/ctt/ctt_noise.py b/utils/raspberrypi/ctt/ctt_noise.py index 2d021e550f85..ba57f1d1d2c5 100644 --- a/utils/raspberrypi/ctt/ctt_noise.py +++ b/utils/raspberrypi/ctt/ctt_noise.py @@ -39,7 +39,6 @@ def noise(Cam, Img, plot): means = np.clip(np.array(means), 0, None) sq_means = np.sqrt(means) - """ least squares fit model """