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.
59 lines
1.3 KiB
59 lines
1.3 KiB
using EC.Helper.CameraSDK;
|
|
using EC.Helper.RabbitFunc.Expressions;
|
|
|
|
namespace Cis.Application.Core.Component.MarkSeacher;
|
|
|
|
/// <summary>
|
|
/// 相机计算参数
|
|
/// </summary>
|
|
public class CameraCalcParams
|
|
{
|
|
/// <summary>
|
|
/// Camera Id
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Ptz 信息
|
|
/// </summary>
|
|
public PtzInfo PtzInfo { get; set; }
|
|
|
|
/// <summary>
|
|
/// FocusX
|
|
/// </summary>
|
|
public double FocusX { get; set; }
|
|
|
|
/// <summary>
|
|
/// FocusY
|
|
/// </summary>
|
|
public double FocusY { get; set; }
|
|
|
|
/// <summary>
|
|
/// ZoomVaryExpr
|
|
/// </summary>
|
|
public LambdaExpression ZoomVaryExpr { get; set; }
|
|
|
|
/// <summary>
|
|
/// 视频宽度
|
|
/// </summary>
|
|
public int VideoWidth { get; set; }
|
|
|
|
/// <summary>
|
|
/// 视频高度
|
|
/// </summary>
|
|
public int VideoHeight { get; set; }
|
|
|
|
public static CameraCalcParams New(long id, PtzInfo ptzInfo, double focusX, double focusY, LambdaExpression ZoomVaryExpr, int videoWidth = 1920, int videoHeight = 1080)
|
|
{
|
|
return new()
|
|
{
|
|
Id = id,
|
|
PtzInfo = ptzInfo,
|
|
FocusX = focusX,
|
|
FocusY = focusY,
|
|
ZoomVaryExpr = ZoomVaryExpr,
|
|
VideoWidth = videoWidth,
|
|
VideoHeight = videoHeight,
|
|
};
|
|
}
|
|
}
|