Skip to content

Commit

Permalink
Merge pull request #95 from RapidAI/add_param_default
Browse files Browse the repository at this point in the history
fix: add default value for enhance_box_line
  • Loading branch information
Joker1212 authored Dec 12, 2024
2 parents b2accc2 + 2e2571c commit aa3e339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
### 使用建议
wired_table_rec_v2(有线表格精度最高): 通用场景有线表格(论文,杂志,期刊, 收据,单据,账单)

wired_table_rec_v2 对1500px内大小的图片效果最好,所以分辨率超过2000px建议等比缩放一下

paddlex-SLANet-plus(综合精度最高): 文档场景表格(论文,杂志,期刊中的表格)

### 安装
Expand Down
2 changes: 1 addition & 1 deletion wired_table_rec/table_line_rec_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def postprocess(self, img, pred, **kwargs):
h_lines_threshold = kwargs.get("h_lines_threshold", 100) if kwargs else 100
v_lines_threshold = kwargs.get("v_lines_threshold", 15) if kwargs else 15
angle = kwargs.get("angle", 50) if kwargs else 50
enhance_box_line = kwargs.get("enhance_box_line") if kwargs else True
enhance_box_line = kwargs.get("enhance_box_line", True) if kwargs else True
morph_close = (
kwargs.get("morph_close", enhance_box_line) if kwargs else enhance_box_line
) # 是否进行闭合运算以找到更多小的框
Expand Down

0 comments on commit aa3e339

Please sign in to comment.