Unverified Commit 0678a860 authored by myhloli's avatar myhloli Committed by GitHub

Merge pull request #117 from papayalove/master

修复分段边界问题
parents bf18172d 9c6cb7b7
......@@ -331,7 +331,7 @@ def __split_para_in_layoutbox(blocks_group, new_layout_bbox, lang="en"):
block["type"] == BlockType.Text for line in
block['lines']]
total_lines = len(lines)
if total_lines == 1:
if total_lines == 1 or total_lines == 0:
list_info.append([False, False])
continue
"""在进入到真正的分段之前,要对文字块从统计维度进行对齐方式的探测,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment