From 00929ab3916a896ab93fed3c57c27fd1c7b8b4ac Mon Sep 17 00:00:00 2001 From: "Rezanezhad, Vahid" Date: Fri, 25 Oct 2019 14:39:37 +0200 Subject: [PATCH] Update main.py --- qurator/sbb_textline_detector/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qurator/sbb_textline_detector/main.py b/qurator/sbb_textline_detector/main.py index 86ba3c1..a28bfdc 100644 --- a/qurator/sbb_textline_detector/main.py +++ b/qurator/sbb_textline_detector/main.py @@ -696,16 +696,16 @@ class textlineerkenner: if img.shape[1] < img_width_textline: img = cv2.resize(img, (img_height_textline, img.shape[0]), interpolation=cv2.INTER_NEAREST) - margin = True + margin = False if not margin: width = img_width_textline height = img_height_textline - img = self.otsu_copy(img) + #img = self.otsu_copy(img) img = img.astype(np.uint8) # for _ in range(4): - # img = cv2.medianBlur(img,5) + img = cv2.medianBlur(img,5) img = img / 255.0 img_h = img.shape[0]