From 983ec0666ccf97f7768c70f96f568cfe9ce0ae5c Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Mon, 6 Jan 2025 13:54:17 +0800 Subject: [PATCH] Fix param error. (#4355) ### What problem does this PR solve? #4230 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- deepdoc/vision/t_recognizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepdoc/vision/t_recognizer.py b/deepdoc/vision/t_recognizer.py index d0c0cb49c..024428f70 100644 --- a/deepdoc/vision/t_recognizer.py +++ b/deepdoc/vision/t_recognizer.py @@ -38,7 +38,7 @@ def main(args): detr = TableStructureRecognizer() ocr = OCR() - layouts = detr(images, float(args.threshold)) + layouts = detr(images, thr=float(args.threshold)) for i, lyt in enumerate(layouts): if args.mode.lower() == "tsr": #lyt = [t for t in lyt if t["type"] == "table column"]