细化接口内容
This commit is contained in:
@@ -32,11 +32,23 @@ public class CamerasController : ControllerBase
|
||||
var devices = _manager.GetAllDevices().Select(d => new
|
||||
{
|
||||
d.Id,
|
||||
d.Config.IpAddress,
|
||||
d.Config.Name,
|
||||
d.Config.RenderHandle,
|
||||
d.Config.StreamType,
|
||||
d.Config.IpAddress,
|
||||
Brand = d.Config.Brand.ToString(),
|
||||
Status = d.Status.ToString(),
|
||||
d.RealFps,
|
||||
d.TotalFrames
|
||||
d.TotalFrames,
|
||||
d.IsPhysicalOnline,
|
||||
d.IsOnline,
|
||||
d.IsRunning,
|
||||
d.Width,
|
||||
d.Height,
|
||||
d.PreprocessSettings.AllowEnlarge,
|
||||
d.PreprocessSettings.AllowShrink,
|
||||
ScalingWidth = d.PreprocessSettings.Width,
|
||||
ScalingHeight = d.PreprocessSettings.Height,
|
||||
});
|
||||
return Ok(devices);
|
||||
}
|
||||
|
||||
@@ -377,6 +377,8 @@ public class HikVideoSource : BaseVideoSource,
|
||||
Cv2.CvtColor(rawYuvWrapper, smartFrame.InternalMat, ColorConversionCodes.YUV2BGR_YV12);
|
||||
}
|
||||
|
||||
smartFrame.SubscriberIds.AddRange(decision.TargetAppIds);
|
||||
|
||||
// =========================================================================
|
||||
// 【新增】插入这一行!
|
||||
// 此时 smartFrame.InternalMat 已经有了图像数据
|
||||
|
||||
Reference in New Issue
Block a user