pull/44/head
vahid 4 years ago
parent 059905c9e4
commit becb0c1329

@ -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…
Cancel
Save