fix: update ocr
This commit is contained in:
parent
58a0bd55c0
commit
619534239b
@ -257,6 +257,7 @@ class RasterisedDocumentParser(DocumentParser):
|
|||||||
rolate_width = width_api_img /page_width
|
rolate_width = width_api_img /page_width
|
||||||
for block in data["pages"][page_num]["blocks"]:
|
for block in data["pages"][page_num]["blocks"]:
|
||||||
for line in block.get("lines", []):
|
for line in block.get("lines", []):
|
||||||
|
text_line = ''
|
||||||
for word in line.get("words", []):
|
for word in line.get("words", []):
|
||||||
x1 = word["bbox"][0][0] / float(rolate_width)
|
x1 = word["bbox"][0][0] / float(rolate_width)
|
||||||
y1 = word["bbox"][0][1] / float(rolate_height)
|
y1 = word["bbox"][0][1] / float(rolate_height)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user