mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-09 20:29:55 +02:00
trivial
This commit is contained in:
parent
059905c9e4
commit
becb0c1329
1 changed files with 55 additions and 55 deletions
|
@ -1382,7 +1382,7 @@ def textline_contours_postprocessing(textline_mask, slope, contour_text_interest
|
|||
# textline_mask = cv2.erode(textline_mask, kernel, iterations=1)
|
||||
|
||||
# print(textline_mask.shape[0]/float(textline_mask.shape[1]),'miz')
|
||||
#try:
|
||||
try:
|
||||
# if np.abs(slope)>.5 and textline_mask.shape[0]/float(textline_mask.shape[1])>3:
|
||||
# plt.imshow(textline_mask)
|
||||
# plt.show()
|
||||
|
@ -1455,9 +1455,9 @@ def textline_contours_postprocessing(textline_mask, slope, contour_text_interest
|
|||
else:
|
||||
_, contours_rotated_clean = separate_lines(dst, contours_text_rot[ind_big_con], slope, x_help, y_help)
|
||||
|
||||
#except:
|
||||
except:
|
||||
|
||||
#contours_rotated_clean = []
|
||||
contours_rotated_clean = []
|
||||
|
||||
return contours_rotated_clean
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue