namespace CCDCount.MODEL.ConfigModel
{
    public class CameraConfig
    {
        /// <summary>
        /// 相机编号
        /// 用于PLC区分相机
        /// 生成Config时需要进行不可重复判断
        /// </summary>
        public int CamerNo { get; set; } = -1;
        /// <summary>
        /// 相机序列号
        /// </summary>
        public string CameraSNNum { get; set; } = string.Empty;

        /// <summary>
        /// 曝光时间
        /// </summary>
        public float ExposureTimeValue  { get; set; } = 100;

        /// <summary>
        /// 采集行频
        /// </summary>
        public int AcquistionLineRateValue { get; set; } = 800;

        /// <summary>
        /// 图像宽度
        /// </summary>
        public int Width { get; set; }

        /// <summary>
        /// 图像X偏移
        /// </summary>
        public int OffsetX { get; set; }
        /// <summary>
        /// 相机名称
        /// </summary>
        public string CameraName { get; set; } = string.Empty;
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; } = string.Empty;
        /// <summary>
        /// 是否为配置文件读取
        /// </summary>
        public bool IsLoadCanfig { get; set; } = false;

        /// <summary>
        /// 是否默认打开
        /// </summary>
        public bool IsOpenLoad { get; set; } = true;
    }

}
