graft: refactor

This commit is contained in:
James R. Barlow
2020-05-07 02:03:42 -07:00
parent 1b086f60a9
commit e760622a5c
2 changed files with 108 additions and 97 deletions
+6 -1
View File
@@ -243,7 +243,12 @@ def exec_concurrent(context):
def update_page(result, pbar):
sidecars[result.pageno] = result.text
pbar.update()
ocrgraft.graft_page(result)
ocrgraft.graft_page(
pageno=result.pageno,
image=result.pdf_page_from_image,
textpdf=result.ocr,
autorotate_correction=result.orientation_correction,
)
pbar.update()
exec_progress_pool(