namespace CCDCount.MODEL.ConfigModel { /// /// 数粒工具的基础参数设置 /// public class ShuLiConfigClass { /// /// 绑定相机的SN序列号 /// public string CameraSN { get; set; } = string.Empty; /// /// 图像宽度 /// public int ImageWidth { get; set; } /// /// 二值化阈值 /// public int RegionThreshold { get; set; } = 30; /// /// 允许物体中断的最大连续行数 /// public int MAX_GAP { get; set; } = 2; /// /// 单个物体允许的最大高度 /// public int MAX_Idetify_Height { get; set; } = 2000; /// /// 合格物体的最小横向像素数 /// public int MIN_OBJECT_WIDTH { get; set; } = 15; /// /// 合格物体的最大横向像素数 /// public int MAX_OBJECT_WIDTH { get; set; } = 4000; /// /// 合格物体的最小竖向像素 /// public int MIN_OBJECT_HEIGHT { get; set; } = 15; /// /// 合格物体的最大竖向像素 /// public int MAX_OBJECT_HEIGHT { get; set; } = 200; /// /// 判定标准识别码 /// -1 为无效不进行颗粒合格判定 /// 0 为使用宽高进行合格判定 /// 1 为使用面积进行合格判定 /// 2 为使用宽高和面积进行合格判定 /// public int PandingCode { get; set; } = 0; /// /// 合格物体的最大面积 /// public int MaxArea { get; set; } = 1000000; /// /// 合格物体的最小面积 /// public int MinArea { get; set; } = 0; /// /// 噪声过滤阈值 /// public int NoiseFilter_Threshold { get; set; } = 5; /// /// 识别区域起始X坐标 /// public int IdentifyStartX { get; set; } = 0; /// /// 识别区域结束X坐标 /// public int IdentifyStopX { get; set; } = 0; /// /// 是否开启识别区域 /// public bool IsIdentifyRoiOpen { get; set; } = false; /// /// 通道数量 /// public int Channel { get; set; } = 1; /// /// 是否为配置文件读取 /// public bool IsLoadCanfig { get; set; } = false; } }