From 5ab1b5c1f18ba69d906f7cbf95cc1150869f3f2b Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Fri, 14 Mar 2025 10:08:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8A=A0=E8=BD=BD=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/_ocr.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/_ocr.py b/src/plugins/_ocr.py index 2398539d..6de4febc 100644 --- a/src/plugins/_ocr.py +++ b/src/plugins/_ocr.py @@ -118,8 +118,6 @@ class OCRPlugin: :param pdf_path: PDF文件路径 :return: 提取的文本 """ - if self.ocr is None: - self.load_model() if not os.path.exists(pdf_path): raise FileNotFoundError(f"PDF file not found: {pdf_path}")