mirror of
https://github.com/qurator-spk/sbb_textline_detection.git
synced 2025-06-09 11:50:02 +02:00
Update main.py
This commit is contained in:
parent
6714481556
commit
8c954a6c7a
1 changed files with 1 additions and 0 deletions
|
@ -1550,6 +1550,7 @@ class textlineerkenner:
|
|||
np.repeat(textline_mask_tot[:, :, np.newaxis], 3, axis=2))
|
||||
|
||||
try:
|
||||
denoised=None
|
||||
textline_con=self.return_contours_of_image(crop_img)
|
||||
textline_con_fil=self.filter_contours_area_of_image(crop_img,textline_con,denoised,max_area=1,min_area=0.0008)
|
||||
y_diff_mean=self.find_contours_mean_y_diff(textline_con_fil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue