将警报通知url放到配置中。其他biz还没有接入警报,似乎不是服务器上最新的代码?待验证

This commit is contained in:
zqc
2026-02-27 13:32:43 +08:00
parent 1df6b83184
commit f55b07a94a
4 changed files with 11 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import requests
# -------------------------- Kadian 检测相关导入 --------------------------
from algorithm.common.npu_yolo_onnx_person_car_phone import YOLOv8_ONNX # 主检测模型(人/车/后备箱/手机)
from common.contants import ALERT_PUSH_URL
from yolox.tracker.byte_tracker import BYTETracker
@@ -17,8 +18,6 @@ from yolox.tracker.byte_tracker import BYTETracker
# Kadian 模型路径与ROI可根据实际情况修改
detector_model_path = 'YOLO_Weight/prisoner_model.onnx'
ALERT_PUSH_URL = "http://123.57.151.210:10000/picenter/websocket/test/process"
# 输入尺寸
input_size = 1280
@@ -430,7 +429,7 @@ class FrameProcessorWorker(threading.Thread):
}
try:
self.ws_queue.put(msg, timeout=1.0)
#if action_names and len(action_names) > 0:
# # if action_names and len(action_names) > 0:
# if push_actions and len(push_actions) > 0:
# # 发送POST请求
# post_msg = msg.copy()