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

支持摄像头配置信息中句柄的设置,并实测有效
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

@@ -31,9 +31,12 @@ namespace SHH.CameraSdk
// 1. 获取实时配置 (极快,内存读取)
var options = _configManager.GetOptions(deviceId);
Mat sourceMat = frame.InternalMat;
if (sourceMat.Empty()) return;
// 2. 原始尺寸
int srcW = frame.InternalMat.Width;
int srcH = frame.InternalMat.Height;
int srcW = sourceMat.Width;
int srcH = sourceMat.Height;
// 3. 目标尺寸
int targetW = options.TargetWidth;