Dispenser/DispenserCore/Model/Entity/CameraInternalParams.cs

60 lines
2.1 KiB
C#
Raw Normal View History

2024-08-16 07:20:09 +00:00
using System.ComponentModel;
using DispenserCommon.Atrributes;
using DispenserCore.Model.Enum;
using SQLite;
namespace DispenserCore.Model.Entity;
[Table("camera_internal_params"), Description("相机内部参数")]
public class CameraInternalParams : Entity
{
[Column("type"), Description("参数类型"), Hide]
public string Type { get; set; }
[Column("balance_ratio"), Description("白平衡值")]
public int BalanceRatio { get; set; }
[Column("exposure_time"), Description("曝光时间"), Property(Min = 15, Max = 2000)]
public int ExposureTime { get; set; }
[Column("exposure_auto"), Description("自动曝光")]
public bool ExposureAuto { get; set; }
[Column("gain"), Description("增益")] public float Gain { get; set; }
[Column("gain_auto"), Description("自动增益")]
public GainAutoEnum GainAuto { get; set; }
[Column("black_level"), Description("灰度值")]
public float BlackLevel { get; set; }
[Column("black_level_enable"), Description("黑电平调节使能")]
public bool BlackLevelEnable { get; set; }
[Column("balance_white_auto"), Description("自动白平衡")]
public bool BalanceWhiteAuto { get; set; }
[Column("resulting_frame_rate"), Description("实际采集帧率fps")]
public float ResultingFrameRate { get; set; }
[Column("gamma"), Description("gamma值"), Property(Min = 0, Max = 4)]
public float Gamma { get; set; }
[Column("gamma_enable"), Description("是否gamma使能")]
public bool GammaEnable { get; set; }
[Column("line_mode"), Description("IO 模式")]
public LineModeEnum LineMode { get; set; }
[Column("line_selector"), Description("IO 选择")]
public LineSelectorEnum LineSelector { get; set; }
[Column("trigger_activation"), Description("触发激活")]
public TriggerActivationEnum TriggerActivation { get; set; }
[Column("trigger_mode"), Description("触发模式")]
public TriggerModeEnum TriggerMode { get; set; }
[Column("trigger_source"), Description("触发源")]
public TriggerSourceEnum TriggerSource { get; set; }
}