Dispenser/DispenserCore/Model/Entity/CameraParams.cs

32 lines
1.0 KiB
C#
Raw Permalink Normal View History

2024-08-16 07:20:09 +00:00
using System.ComponentModel;
using DispenserCommon.Atrributes;
using SQLite;
namespace DispenserCore.Model.Entity;
/// <summary>
/// 相机参数
/// </summary>
[Table("camera_params")]
[Description("相机参数")]
public class CameraParams : Entity
{
[Column("camera_sn"), Description("相机序列号")]
public string CameraSn { get; set; }
[Column("sdk"), Description("SDK")] public string Sdk { get; set; }
[Column("dll"), Description("DLL")] public string Dll { get; set; }
[Column("scale_ratio"), Description("视频缩放比例")]
public double ScaleRatio { get; set; }
[Column("pixel_length"), Description("像素长度"), Property(Format = "0.########")]
public double PixelLength { get; set; }
[Column("deflect_angle"), Description("相机偏转角度"), Property(Format = "0.#####")]
public double DeflectAngle { get; set; }
[Column("camera_inner_param_template"), Description("相机内参模板")]
public string CameraInnerParamTemplate { get; set; }
}