fix: 修复运行错误

- algorithms.py 添加 threading/redis/logger 导入
- ResultReporter 添加 report_heartbeat() 和 close() 方法
This commit is contained in:
2026-01-30 15:15:09 +08:00
parent 36674edff8
commit 4632ae74f3
10 changed files with 198 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
import logging
import os
import sys
import threading
import time
from collections import deque
from datetime import datetime, timedelta
@@ -7,6 +9,9 @@ from typing import Any, Dict, List, Optional, Tuple
import cv2
import numpy as np
import redis
logger = logging.getLogger(__name__)
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))