| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System.Collections.Generic;
- using System.Drawing;
- namespace SHJX.Service.Common.Camera
- {
- public class SensorsParameter
- {
- #region properties
- /// <summary>
- /// 配置节点名称
- /// </summary>
- public string SectionName { get; set; }
- /// <summary>
- /// 摄像头采样区域
- /// </summary>
- public Rectangle RoiSample;
- /// <summary>
- /// 选用的摄像头名称,如:“Logitech HD Webcam C270”
- /// </summary>
- public string CamSensorName { get; set; }
- /// <summary>
- /// 是否自动定位像素处理目标区域位置
- /// </summary>
- public bool UseAutoUpdateRoiPos { get; set; }
- /// <summary>
- /// 是否使用目标区域精确像素定位:仅计算区域内G值大于指定阈值的像素点
- /// </summary>
- public bool UseRoiMask { get; set; }
- /// <summary>
- /// 目标区域内有效点的坐标
- /// </summary>
- public List<Point> RoiMaskPoints { get; set; }
- /// <summary>
- /// roi区域定位后,再进行偏移
- /// </summary>
- 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
- }
- }
|