Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion craft_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def getPoly_core(boxes, labels, mapper, linkmap):
if num_sec != 0:
cp_section[-1] = [cp_section[-1][0] / num_sec, cp_section[-1][1] / num_sec]

# pass if num of pivots is not sufficient or segment widh is smaller than character height
# pass if num of pivots is not sufficient or segment width is smaller than character height
if None in pp or seg_w < np.max(seg_height) * 0.25:
polys.append(None); continue

Expand Down