fix bbox
This commit is contained in:
parent
35e5fade93
commit
d6a4edb148
1 changed files with 1 additions and 1 deletions
|
|
@ -318,7 +318,7 @@ class MinerUParser(RAGFlowPdfParser):
|
|||
|
||||
def _line_tag(self, bx):
|
||||
pn = [bx["page_idx"] + 1]
|
||||
positions = bx["bbox"]
|
||||
positions = bx.get("bbox", (0, 0, 0, 0))
|
||||
x0, top, x1, bott = positions
|
||||
|
||||
if hasattr(self, "page_images") and self.page_images and len(self.page_images) > bx["page_idx"]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue