"mmdet3d/structures/det3d_data_sample.py" did not exist on "bb204696c19ded90121caea82e34fa3ff0bd131f"
Commit 3ff994c4 authored by myhloli's avatar myhloli
Browse files

refactor: close PDF document after processing to improve resource management

parent ab93f856
......@@ -48,6 +48,8 @@ def result_to_middle_json(token_list, images_list, pdf_doc, image_writer):
image_dict = images_list[index]
page_info = token_to_page_info(token, image_dict, page, image_writer, index)
middle_json["pdf_info"].append(page_info)
# 关闭pdf文档
pdf_doc.close()
return middle_json
......
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