From f184ddc094df8bbda76d1b5f245bfd16877b1fa3 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sat, 4 Mar 2023 23:15:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E5=86=99=E5=AE=9E=E6=97=B6?= =?UTF-8?q?=E7=9B=91=E6=8E=A7rtsp=E8=BF=9B=E8=A1=8C=E7=AE=97=E6=B3=95?= =?UTF-8?q?=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ecm/service.py | 4 ++-- apps/third/tapis.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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"