支持通过网页增加、删除、修改摄像头配置信息

支持摄像头配置信息中句柄的设置,并实测有效
This commit is contained in:
2025-12-28 08:07:55 +08:00
parent 3718465463
commit 2ee25a4f7c
25 changed files with 2298 additions and 75 deletions

View File

@@ -61,6 +61,8 @@ public class CameraConfigDto
[MaxLength(64, ErrorMessage = "密码长度不能超过64个字符")]
public string Password { get; set; } = string.Empty;
public long RenderHandle { get; set; }
/// <summary>
/// 通道号 (通常为1)
/// </summary>

View File

@@ -41,16 +41,18 @@ public class DeviceUpdateDto
/// <summary>RTSP流地址 (非SDK模式下使用)</summary>
[MaxLength(256, ErrorMessage = "RTSP地址长度不能超过 256 个字符")]
public string? RtspPath { get; set; }
public string RtspPath { get; set; }
= string.Empty;
/// <summary>关联的主板IP (用于联动控制)</summary>
[RegularExpression(@"^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)?$",
ErrorMessage = "IPv4地址")]
public string? MainboardIp { get; set; }
public string MainboardIp { get; set; }
= string.Empty;
/// <summary>关联的主板端口</summary>
[Range(1, 65535, ErrorMessage = "主板端口号必须在 1-65535 范围内")]
public int? MainboardPort { get; set; }
public int MainboardPort { get; set; }
// ==============================================================================
// 2. 热更新参数 (Hot Update)
@@ -71,7 +73,7 @@ public class DeviceUpdateDto
/// <summary>渲染句柄 (IntPtr 的 Long 形式)</summary>
[Range(0, long.MaxValue, ErrorMessage = "渲染句柄必须是非负整数")]
public long? RenderHandle { get; set; }
public long RenderHandle { get; set; }
// ==============================================================================
// 3. 图像处理参数 (Image Processing - Hot Update)

View File

@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SHH.CameraSdk
namespace SHH.CameraSdk
{
public class UpdateProcessingRequest
{
@@ -13,7 +7,7 @@ namespace SHH.CameraSdk
public bool EnableExpand { get; set; }
public int TargetWidth { get; set; }
public int TargetHeight { get; set; }
public bool EnableEnhance { get; set; }
public double BrightnessLevel { get; set; }
public bool EnableBrightness { get; set; }
public int Brightness { get; set; }
}
}
}