diff --git a/apps/ecm/service.py b/apps/ecm/service.py index 7c1e0326..559d0e49 100644 --- a/apps/ecm/service.py +++ b/apps/ecm/service.py @@ -637,8 +637,8 @@ def snap_and_analyse(vchannel: TDevice, algo_codes: list, opl: Opl = None): notify_event(event) -def loop_task(): - # 轮询拍照进行算法识别 +def loop_and_analyse(vchannel: TDevice, algo_codes: list, opl: Opl = None): + # 启动rtsp轮询进行算法识别 pass # cates = EventCate.objects.filter(loop_on=True, self_algo=True) # AlgoChannel.objects.filter(algo__loop_on=True, algo__self_algo=True).values('algo__code', 'vchannel') diff --git a/apps/third/tapis.py b/apps/third/tapis.py index 84ac807d..ab779e52 100755 --- a/apps/third/tapis.py +++ b/apps/third/tapis.py @@ -100,6 +100,10 @@ dhapis = { "url": "/evo-apigw/admin/API/video/stream/realtime", "method": "post" }, + "video_rtsp": { + "url": "/evo-apigw/admin/API/MTS/Video/StartVideo", + "method": "post" + }, "alarm_detail": { "url": "/evo-apigw/evo-event/1.2.0/alarm-record/detail?alarmCode={alarmCode}&dbType={dbType}&alarmDate={alarmDate}", "method": "get"