You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
2 years ago
|
using EC.Helper.CameraSDK;
|
||
|
|
||
|
namespace Cis.Application.Core.Component.MarkSeacher;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 标签计算参数
|
||
|
/// </summary>
|
||
|
public class MarkLabelCalcParams
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// MarkLabel Id
|
||
|
/// </summary>
|
||
|
public long Id { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Ptz 信息
|
||
|
/// </summary>
|
||
|
public PtzInfo PtzInfo { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 视频宽度
|
||
|
/// </summary>
|
||
|
public double VideoWidth { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 视频高度
|
||
|
/// </summary>
|
||
|
public double VideoHeight { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 画布 left 距离比例
|
||
|
/// </summary>
|
||
|
public double CanvasLeftRatio { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 画布 top 距离比例
|
||
|
/// </summary>
|
||
|
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
|
||
|
};
|
||
|
}
|
||
|
}
|