mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-07-25 21:19:18 +02:00
layout -cl: ensure lines are also within parent regions here
This commit is contained in:
parent
0a53381751
commit
a8ec42eed3
1 changed files with 1 additions and 0 deletions
|
|
@ -1585,6 +1585,7 @@ def do_work_of_slopes_new_curved(
|
|||
mask_line = np.zeros_like(mask_parent)
|
||||
mask_line = cv2.fillPoly(mask_line, pts=[contour], color=1)
|
||||
mask_line = cv2.dilate(mask_line, KERNEL, iterations=5 if num_col == 0 else 4)
|
||||
mask_line *= mask_parent
|
||||
# plt.subplot(1, 2, 1, title="parent mask")
|
||||
# plt.imshow(mask_parent)
|
||||
# plt.subplot(1, 2, 2, title="single textline")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue