using EC.Helper.CameraSDK;
namespace Cis.Application.Core.Component.MarkSeacher;
///
/// 标签计算参数
///
public class MarkLabelCalcParams
{
///
/// MarkLabel Id
///
public long Id { get; set; }
///
/// Ptz 信息
///
public PtzInfo PtzInfo { get; set; }
///
/// 视频宽度
///
public double VideoWidth { get; set; }
///
/// 视频高度
///
public double VideoHeight { get; set; }
///
/// 画布 left 距离比例
///
public double CanvasLeftRatio { get; set; }
///
/// 画布 top 距离比例
///
public double CanvasTopRatio { get; set; }
public static MarkLabelCalcParams New(long id, PtzInfo ptzInfo, double videoWidth, double videoHeight, double canvasLeftRatio, double canvasTopRatio)
{
return new()
{
Id = id,
PtzInfo = ptzInfo,
VideoWidth = videoWidth,
VideoHeight = videoHeight,
CanvasLeftRatio = canvasLeftRatio,
CanvasTopRatio = canvasTopRatio
};
}
}