using System.Collections.Generic;
using System.Drawing;
namespace SHJX.Service.Common.Camera
{
public class SensorsParameter
{
#region properties
///
/// 配置节点名称
///
public string SectionName { get; set; }
///
/// 摄像头采样区域
///
public Rectangle RoiSample;
///
/// 选用的摄像头名称,如:“Logitech HD Webcam C270”
///
public string CamSensorName { get; set; }
///
/// 是否自动定位像素处理目标区域位置
///
public bool UseAutoUpdateRoiPos { get; set; }
///
/// 是否使用目标区域精确像素定位:仅计算区域内G值大于指定阈值的像素点
///
public bool UseRoiMask { get; set; }
///
/// 目标区域内有效点的坐标
///
public List RoiMaskPoints { get; set; }
///
/// roi区域定位后,再进行偏移
///
public int RoiOffsetX { get; set; }
#endregion
#region methods
public SensorsParameter()
{
SectionName = "Sensors";
RoiSample = new Rectangle(310, 210, 20, 20);
CamSensorName = "Logitech HD Webcam C270";// "Logi C270 HD WebCam";//
UseAutoUpdateRoiPos = true;
UseRoiMask = true;
RoiMaskPoints = null;
RoiOffsetX = 0;
}
#endregion
}
}