Przeglądaj źródła

fix coordinate error (#686)

### What problem does this PR solve?

#683 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.6.0
KevinHuSh 1 rok temu
rodzic
commit
99be226c7c
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1
    0
      deepdoc/parser/pdf_parser.py

+ 1
- 0
deepdoc/parser/pdf_parser.py Wyświetl plik

@@ -749,6 +749,7 @@ class RAGFlowPdfParser:
"layoutno", "")))

left, top, right, bott = b["x0"], b["top"], b["x1"], b["bottom"]
if right < left: right = left + 1
poss.append((pn + self.page_from, left, right, top, bott))
return self.page_images[pn] \
.crop((left * ZM, top * ZM,

Ładowanie…
Anuluj
Zapisz