From ea6460d1e273677bf05cfef84dbf016e96c628f4 Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Thu, 16 Apr 2026 16:00:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=98=8E?= =?UTF-8?q?=E7=A1=AE=E7=9A=84=E6=9C=AC=E5=9C=B0=E5=88=86=E6=9E=90=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local_analyzer.py | 2 ++ scheduler.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/local_analyzer.py b/local_analyzer.py index c632e78..6b44de6 100644 --- a/local_analyzer.py +++ b/local_analyzer.py @@ -74,6 +74,8 @@ class LocalAnalyzer: } """ try: + print(f"[LocalAnalyzer] Loading image: {image_path}") + # 加载当前图片 current_frame = cv2.imread(image_path) if current_frame is None: diff --git a/scheduler.py b/scheduler.py index 4af8a50..b646154 100644 --- a/scheduler.py +++ b/scheduler.py @@ -101,9 +101,13 @@ class VisionScheduler: def _analyze_task(self, image_id, image_path): """分析任务 - 先本地分析,再决定是否调用大模型""" try: + print(f"[Scheduler] ===== Analyzing image {image_id} =====") + print(f"[Scheduler] Image path: {image_path}") + self.local_analyses += 1 # 1. 本地快速分析 + print(f"[Scheduler] Starting local analysis...") local_result = self.local_analyzer.analyze(image_path, self.prev_image_path) # 保存当前图片路径供下次对比