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.1 KiB
52 lines
1.1 KiB
using EC.Helper.CameraSDK;
|
|
|
|
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>
|
|
/// 视频宽度
|
|
/// </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, int videoWidth = 1920, int videoHeight = 1080)
|
|
{
|
|
return new()
|
|
{
|
|
Id = id,
|
|
PtzInfo = ptzInfo,
|
|
FocusX = focusX,
|
|
FocusY = focusY,
|
|
VideoWidth = videoWidth,
|
|
VideoHeight = videoHeight,
|
|
};
|
|
}
|
|
}
|