mirror of
https://github.com/qurator-spk/sbb_textline_detection.git
synced 2025-06-13 22:00:05 +02:00
Fix more typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
be7b101f39
commit
ea3e7737ac
1 changed files with 2 additions and 2 deletions
|
@ -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))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue