From 0f7485bab9e71f47a6be13a31eccc216f9957536 Mon Sep 17 00:00:00 2001 From: zhangbin <460190368@qq.com> Date: Fri, 15 Aug 2025 14:26:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=99=BA=E8=83=BD=E6=B5=81?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ServiceApp/Request/DaHuaTaskInfo.cs | 4 +-- .../ServiceControllers/DaHuaAiController.cs | 28 ++++++++++++++++++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/OpenAuth.App/ServiceApp/Request/DaHuaTaskInfo.cs b/OpenAuth.App/ServiceApp/Request/DaHuaTaskInfo.cs index 4a04566..33d4d12 100644 --- a/OpenAuth.App/ServiceApp/Request/DaHuaTaskInfo.cs +++ b/OpenAuth.App/ServiceApp/Request/DaHuaTaskInfo.cs @@ -15,8 +15,8 @@ namespace OpenAuth.App.ServiceApp.Request public int analysisType { get; set; } - public string url { get; set; } - + public string url { get; set; }//待分析的rtsp码流地址,标准rtsp + public string memo { get; set; } public string config { get; set; } diff --git a/OpenAuth.WebApi/Controllers/ServiceControllers/DaHuaAiController.cs b/OpenAuth.WebApi/Controllers/ServiceControllers/DaHuaAiController.cs index 60ec403..d398f94 100644 --- a/OpenAuth.WebApi/Controllers/ServiceControllers/DaHuaAiController.cs +++ b/OpenAuth.WebApi/Controllers/ServiceControllers/DaHuaAiController.cs @@ -155,7 +155,7 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers /// /// 创建行为场景分析任务 /// - /// + /// 参数详见文档7.1.3.3. 创建行为场景分析任务 /// [HttpPost] [AllowAnonymous] @@ -174,5 +174,31 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers { return PostJsonAsync($"/processing/behavior/realtime/tasks/{taskId}", new { }); } + /// + /// 查看场景认知通用分析任务列表 + /// + /// + /// + /// 分析类型,仅支持0:智能分析 + /// + [HttpPost] + [AllowAnonymous] + public Task> GetTasks(int page, int limit, int analysisType) + { + return PostJsonAsync($"/processing/behavior/realtime/tasks?currentPage={page}&pageSize={limit}&analysisType={analysisType}", new { }); + } + /// + /// 获取智能流播放地址 + /// + /// taskId + /// 智能流类型,当前仅支持2: 行为 + /// 行为场景智能流仅支持type=1 + /// + [HttpPost] + [AllowAnonymous] + public Task> GetChannel(string id, int streamType, int type) + { + return PostJsonAsync($"/processing/inner/play/channel/{id}?streamType={streamType}&type={type}", new { }); + } } }