Fix more typos (found by codespell)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
pull/11/head
Stefan Weil 5 years ago
parent be7b101f39
commit ea3e7737ac

@ -916,8 +916,8 @@ class textlineerkenner:
image_box_tabels=image_box_tabels.astype(np.uint8) image_box_tabels=image_box_tabels.astype(np.uint8)
imgray = cv2.cvtColor(image_box_tabels, cv2.COLOR_BGR2GRAY) imgray = cv2.cvtColor(image_box_tabels, cv2.COLOR_BGR2GRAY)
ret, thresh = cv2.threshold(imgray, 0, 255, 0) ret, thresh = cv2.threshold(imgray, 0, 255, 0)
contours,hierachy=cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) contours,hierarchy=cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
return contours,hierachy return contours,hierarchy
def find_contours_mean_y_diff(self,contours_main): def find_contours_mean_y_diff(self,contours_main):
M_main=[cv2.moments(contours_main[j]) for j in range(len(contours_main))] M_main=[cv2.moments(contours_main[j]) for j in range(len(contours_main))]

Loading…
Cancel
Save