From 094d50ee13a75f2d20d767ecce636bb962041b38 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 10 Aug 2023 02:37:44 +0000 Subject: [PATCH] style: format code with autopep8 Format code with autopep8 This commit fixes the style issues introduced in d9bb317 according to the output from Autopep8. Details: None --- Border Extraction/Border_extraction.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Border Extraction/Border_extraction.py b/Border Extraction/Border_extraction.py index 3bd6ca68ef..8a54ca9a5e 100644 --- a/Border Extraction/Border_extraction.py +++ b/Border Extraction/Border_extraction.py @@ -10,14 +10,14 @@ photo = askopenfilename() img = cv2.imread(photo) -n,l,m = img.shape -size = (n,l) +n, l, m = img.shape +size = (n, l) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) -threshold_value = 20 # this value needs to be adjusted for every image +threshold_value = 20 # this value needs to be adjusted for every image ret, thresh = cv2.threshold(gray, threshold_value, 255, 0) -kernel = np.ones((5,5),np.uint8) +kernel = np.ones((5, 5), np.uint8) # dilation and erosion are applied to binary images dilated = cv2.dilate(thresh, kernel, iterations=1) eroded = cv2.erode(thresh, kernel, iterations=1) @@ -29,4 +29,4 @@ cv2.waitKey(0) cv2.destroyAllWindows() -window.mainloop() \ No newline at end of file +window.mainloop()