using EC.Helper.CameraSDK;
using EC.Helper.RabbitFunc.Expressions;
namespace Cis.Application.Core.Component.MarkSeacher;
///
/// 相机计算参数
///
public class CameraCalcParams
{
///
/// Camera Id
///
public long Id { get; set; }
///
/// Ptz 信息
///
public PtzInfo PtzInfo { get; set; }
///
/// FocusX
///
public double FocusX { get; set; }
///
/// FocusY
///
public double FocusY { get; set; }
///
/// ZoomVaryExpr
///
public LambdaExpression ZoomVaryExpr { get; set; }
///
/// 视频宽度
///
public int VideoWidth { get; set; }
///
/// 视频高度
///
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,
};
}
}