Commit 485659df authored by zhougaofeng's avatar zhougaofeng
Browse files

Update common.py

parent 4dc092b7
...@@ -45,7 +45,6 @@ def remove_empty_lines_from_file(file_path): ...@@ -45,7 +45,6 @@ def remove_empty_lines_from_file(file_path):
def do_parse( def do_parse(
ocr_status,
config_path, config_path,
output_dir, output_dir,
pdf_file_name, pdf_file_name,
...@@ -111,7 +110,7 @@ def do_parse( ...@@ -111,7 +110,7 @@ def do_parse(
logger.error('need model list input') logger.error('need model list input')
exit(2) exit(2)
pipe.pipe_parse(ocr_status,config_path,local_image_dir) pipe.pipe_parse(config_path,local_image_dir)
pdf_info = pipe.pdf_mid_data['pdf_info'] pdf_info = pipe.pdf_mid_data['pdf_info']
if f_draw_layout_bbox: if f_draw_layout_bbox:
draw_layout_bbox(pdf_info, pdf_bytes, local_md_dir, pdf_file_name) draw_layout_bbox(pdf_info, pdf_bytes, local_md_dir, pdf_file_name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment