Newer
Older
IRIS_REFACTOR / irisMemory / IdentifyConfig.cs
TAN YUE on 1 Jul 2021 1 KB 20210701 正常流程测试
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace irisMemory
{
    public class IdentifyConfig
    {
        // =1时表示在工作,从队列中取出图片调用找眼算法;
        // =0时表示终端待机
        private int flag_Working; // 是否在找眼标志位,是否在工作标志位
        private int flag_FoundEye; // 是否找到合格眼睛标志位,用于表示是否进入识别过程

        private int count_NoEyeLast; // 连续没找到眼的次数

        private IdentifyConfig()
        {
            this.Flag_Working = 0;
            this.Flag_FoundEye = 0;

            this.Count_NoEyeLast = 0;
        }

        private static readonly IdentifyConfig identifyConfig = new IdentifyConfig();

        public int Flag_Working { get => flag_Working; set => flag_Working = value; }
        public int Flag_FoundEye { get => flag_FoundEye; set => flag_FoundEye = value; }
        public int Count_NoEyeLast { get => count_NoEyeLast; set => count_NoEyeLast = value; }

        public static IdentifyConfig GetInstance { get => identifyConfig; }
    }
}