将警报通知url放到配置中。其他biz还没有接入警报,似乎不是服务器上最新的代码?待验证
This commit is contained in:
@@ -13,6 +13,7 @@ import queue
|
||||
|
||||
from biz.checkpoint.checkpoint_biz import FrameProcessorWorker
|
||||
from common.camera_config import CameraConfig, parse_cameras_from_json, parse_cameras_from_yaml
|
||||
from common.contants import init_config
|
||||
from test_cam import get_camera_preview_url
|
||||
from utils.web_socket_sender import WebSocketSender
|
||||
|
||||
@@ -209,6 +210,9 @@ if __name__ == "__main__":
|
||||
parser.add_argument("--algorithm", type=str, default="", help="Algorithm type")
|
||||
args = parser.parse_args()
|
||||
|
||||
# 初始化全局配置
|
||||
init_config(args.config)
|
||||
|
||||
# 优先使用命令行传入的 cameras JSON,否则读取配置文件
|
||||
if args.cameras:
|
||||
cameras = parse_cameras_from_json(args.cameras)
|
||||
|
||||
Reference in New Issue
Block a user