Przeglądaj źródła

Fix param error. (#4355)

### What problem does this PR solve?

#4230

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.16.0
Kevin Hu 10 miesięcy temu
rodzic
commit
983ec0666c
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      deepdoc/vision/t_recognizer.py

+ 1
- 1
deepdoc/vision/t_recognizer.py Wyświetl plik

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"]

Ładowanie…
Anuluj
Zapisz