using EC.Helper.CameraSDK;
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; }
///
/// 视频宽度
///
public int VideoWidth { get; set; }
///
/// 视频高度
///
public int VideoHeight { get; set; }
public static CameraCalcParams New(long id, PtzInfo ptzInfo, double focusX, double focusY, int videoWidth = 1920, int videoHeight = 1080)
{
return new()
{
Id = id,
PtzInfo = ptzInfo,
FocusX = focusX,
FocusY = focusY,
VideoWidth = videoWidth,
VideoHeight = videoHeight,
};
}
}