From ea3e7737acaa35e8adbffcac35deb39691eb7ded Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 6 Dec 2019 23:42:51 +0100 Subject: [PATCH] Fix more typos (found by codespell) Signed-off-by: Stefan Weil --- qurator/sbb_textline_detector/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qurator/sbb_textline_detector/main.py b/qurator/sbb_textline_detector/main.py index 18aeaa5..6f6c516 100644 --- a/qurator/sbb_textline_detector/main.py +++ b/qurator/sbb_textline_detector/main.py @@ -916,8 +916,8 @@ class textlineerkenner: image_box_tabels=image_box_tabels.astype(np.uint8) imgray = cv2.cvtColor(image_box_tabels, cv2.COLOR_BGR2GRAY) ret, thresh = cv2.threshold(imgray, 0, 255, 0) - contours,hierachy=cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) - return contours,hierachy + contours,hierarchy=cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) + return contours,hierarchy def find_contours_mean_y_diff(self,contours_main): M_main=[cv2.moments(contours_main[j]) for j in range(len(contours_main))]