Fix param error. (#4355)
### What problem does this PR solve? #4230 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
a9ba051582
commit
983ec0666c
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def main(args):
|
||||||
detr = TableStructureRecognizer()
|
detr = TableStructureRecognizer()
|
||||||
ocr = OCR()
|
ocr = OCR()
|
||||||
|
|
||||||
layouts = detr(images, float(args.threshold))
|
layouts = detr(images, thr=float(args.threshold))
|
||||||
for i, lyt in enumerate(layouts):
|
for i, lyt in enumerate(layouts):
|
||||||
if args.mode.lower() == "tsr":
|
if args.mode.lower() == "tsr":
|
||||||
#lyt = [t for t in lyt if t["type"] == "table column"]
|
#lyt = [t for t in lyt if t["type"] == "table column"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue