Ejemplo n.º 1
0
 public FaceWhiteQr()
 {
     InitializeComponent();
     _confidence = IrAdvanced.ReadInt("Confidence", 85) / 100.0f;   //可信度
     try
     {
         faceFactory = new FaceVerifyFactory();
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 2
0
 public BaseView()
 {
     Width               = 1280; Height = 800;
     IdCardFunc.Port     = IrAdvanced.ReadString("Port", "", "", "Communication1").ToLower();
     IdCardFunc.BeepPort = IrAdvanced.ReadString("BeepPort", "", "", "Communication1").ToLower();
     UseWriteList        = IrAdvanced.ReadBoolean("Whitelist"); //是否启用白名单验证
     UseInSession        = IrAdvanced.ReadBoolean("InSession"); //是否启用入场验证避免重复入场
     IsIdSame            = IrAdvanced.ReadBoolean("IsIdSame");  //散票的身份证号码是否验证必须与所识别身份证号码一致
     IsCheckIdNo         = IrAdvanced.ReadBoolean("IsCheckIdNo");
     IsCheckBlack        = IrAdvanced.ReadBoolean("IsCheckBlack");
     IsAudio             = IrAdvanced.ReadBoolean("IsAudio");
     CamSleep            = IrAdvanced.ReadInt("CamSleep", 100);     //摄像头刷新速率
     FaceTimeOut         = IrAdvanced.ReadInt("FaceTimeOut", 3000); //人脸识别超时时间
     FaceOutCount        = FaceTimeOut / CamSleep;
 }
Ejemplo n.º 3
0
 private bool TestCvr()
 {
     try
     {
         var port = IrAdvanced.ReadInt("CvrCom");
         var r    = Cvrsdk.Well_InitComm(port) == 1; //返回是否初始化成功
         if (r)
         {
             Cvrsdk.Well_CloseComm();
         }
         return(r);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Ejemplo n.º 4
0
 /// <summary> 初始化CVR第二代身份证识别硬件 </summary>
 public bool Init()
 {
     try
     {
         var port = IrAdvanced.ReadInt("CvrCom");
         port.ToString().ToSaveLog("尝试打开二代身份证硬件连接端口:");
         _iRetPort = Cvrsdk.Well_InitComm(port);
         if (_iRetPort != 1)
         {
             "CVR串口打开失败".ToSaveLog();
         }
         return(_iRetPort == 1);    //返回是否初始化成功
     }
     catch (Exception ex)
     {
         ex.Message.ToSaveLog("初始化CVR第二代身份证识别硬件失败:");
     }
     return(false);
 }
Ejemplo n.º 5
0
        /// <summary> 自定义控件 </summary>
        public MyCustomControl(JObject oJson) : base(oJson)
        {
            try
            {
                //检查程序是否注册,防止盗用
                if (!IrAdvanced.CheckRegisterState)
                {
                    return;
                }

                //获取图片文件,并检查文件是否有效
                _myControl.Mode = IrAdvanced.ReadInt("Mode", 1);
                //_myControl.Init();
                Children.Add(_myControl);
                //设置控件ID号
                Tag = string.IsNullOrEmpty(SId) ? "2018_0" : SId;
                IsControlCreateSuccess = true;
            }
            catch (Exception ex)
            {
                ex.ToSaveLog();
            }
        }
Ejemplo n.º 6
0
 public FaceWhiteIc()
 {
     InitializeComponent();
     _confidence = IrAdvanced.ReadInt("Confidence", 65) / 100.0f;   //可信度
 }
Ejemplo n.º 7
0
 public BaseFaceView()
 {
     _confidence = IrAdvanced.ReadInt("Confidence", 65) / 100.0f;   //可信度
 }