fix: 添加更明确的本地分析日志输出
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
# 保存当前图片路径供下次对比
|
||||
|
||||
Reference in New Issue
Block a user