wangdongxu

jira:NYJ-1550 desc:结构调整

... ... @@ -71,14 +71,8 @@ class FootballReplayMatch:
logger.info(f'通过时间找到匹配的事件')
import json
import os
from pathlib import Path
from .llm_image import Video2Frame
from ..util.football_replay_match_live import FootballReplayMatchLive
from football_replay_match.core.football_replay_match_live import FootballReplayMatchLive
from ..config import settings
... ...
... ... @@ -6,7 +6,7 @@ from langchain_core.messages import SystemMessage, HumanMessage
from langchain_openai import ChatOpenAI
try:
from .llm_video_content import contents as video_contents
from football_replay_match.util.llm_video_content import contents as video_contents
except:
from llm_video_content import contents as video_contents
... ...
... ... @@ -6,7 +6,7 @@ from langchain_core.messages import SystemMessage, HumanMessage
from langchain_openai import ChatOpenAI
try:
from .llm_video_content import contents as video_contents
from football_replay_match.util.llm_video_content import contents as video_contents
except:
from llm_video_content import contents as video_contents
... ...
import base64
import hashlib
import subprocess
from pathlib import Path
import cv2
... ... @@ -349,7 +348,7 @@ if __name__ == "__main__":
print("\n[TEST 3] FootballReplayVideoEvent 进球识别(可选)")
try:
from ..util.football_replay_video_event_by_llm import FootballReplayVideoEvent
from football_replay_match.core.football_replay_video_event_by_llm import FootballReplayVideoEvent
except ImportError:
import sys
from pathlib import Path
... ...
from football_replay_match_live import FootballReplayMatchLive
from football_replay_match.core.football_replay_match_live import FootballReplayMatchLive
from qwen_asr_util import QwenAsr
from football_replay_video_event_by_llm import FootballReplayVideoEvent
from football_replay_match.core.football_replay_video_event_by_llm import FootballReplayVideoEvent
import os
import json
def batch_match():
... ...
import json
import os
from football_replay_video_event_by_llm import FootballReplayVideoEvent
from football_replay_match.core.football_replay_video_event_by_llm import FootballReplayVideoEvent
from qwen_asr_util import QwenAsr
def batch_with_asr():
fbrv = FootballReplayVideoEvent(base_url="http://192.168.1.59:11434/v1", model="Qwen3.6-35B-A3B-UD-Q8_K_XL.gguf", temperature=0.7)
... ...