"torchvision/vscode:/vscode.git/clone" did not exist on "c28797e379163000b1c959fca91d57002d3174c0"
Commit 5468e56f authored by myhloli's avatar myhloli
Browse files

refactor(pdf_parse): adjust line count limit for layoutreader

- Decrease the maximum line count from 512 to 316 for layoutreader
parent 7d5850e3
...@@ -298,7 +298,7 @@ def sort_lines_by_model(fix_blocks, page_w, page_h, line_height): ...@@ -298,7 +298,7 @@ def sort_lines_by_model(fix_blocks, page_w, page_h, line_height):
block['lines'].append({'bbox': line, 'spans': []}) block['lines'].append({'bbox': line, 'spans': []})
page_line_list.extend(lines) page_line_list.extend(lines)
if len(page_line_list) > 512: # layoutreader最高支持512line if len(page_line_list) > 316: # layoutreader最高支持512line
return None return None
# 使用layoutreader排序 # 使用layoutreader排序
......
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