"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "19bbfb2b9aa20c47002290243146a2d6299780ca"
Commit be53986f authored by zhougaofeng's avatar zhougaofeng
Browse files

Update common_parse.py

parent 59af01ad
...@@ -43,11 +43,11 @@ def process_file(file_path, output_dir): ...@@ -43,11 +43,11 @@ def process_file(file_path, output_dir):
start = time.time() start = time.time()
if file_path.endswith('.pdf'): if file_path.endswith('.pdf'):
res = pdf_ocr.ocr_pdf_client(config_path,file_path,output_dir) res = pdf_ocr.ocr_pdf_client(file_path,output_dir)
elif file_path.endswith('.xls') or file_path.endswith('.xlsx'): elif file_path.endswith('.xls') or file_path.endswith('.xlsx'):
res = excel_ocr.parse(file_path, output_dir) res = excel_ocr.parse(file_path, output_dir)
elif file_path.endswith('.ofd'): elif file_path.endswith('.ofd'):
res = ofd_ocr.parse_ofd(config_path,file_path,output_dir) res = ofd_ocr.parse_ofd(file_path,output_dir)
end = time.time() end = time.time()
......
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