Browse Source

Update mineru/utils/pdf_image_tools.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Xiaomeng Zhao 3 weeks ago
parent
commit
dae2cc8514
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mineru/utils/pdf_image_tools.py

+ 1 - 1
mineru/utils/pdf_image_tools.py

@@ -63,7 +63,7 @@ def load_images_from_pdf(
         start_page_id (int, optional): 起始页码. Defaults to 0.
         end_page_id (int | None, optional): 结束页码. Defaults to None.
         image_type (ImageType, optional): 图片类型. Defaults to ImageType.PIL.
-        timeout (int): 超时时间(秒),默认 300 秒
+        timeout (int | None, optional): 超时时间(秒)。如果为 None,则从环境变量 MINERU_PDF_LOAD_IMAGES_TIMEOUT 读取,若未设置则默认为 300 秒。
         threads (int): 进程数,默认 4
 
     Raises: