public bool Start(LiveRecongtionCompletedHandler handler)
        {
            string result;
            var    IdCard = "000000000000000000";
            var    Serise = "000000000000000000000000000000";
            string Param  = "<? xml version =\"1.0\" encoding=\"utf-8\" ?><param><imgWidth>640</imgWidth><imgHeight>480</imgHeight><imgCompress>85</imgCompress><pupilDistMin>0</pupilDistMin><pupilDistMax>150</pupilDistMax><isActived>2</isActived><isAudio>1</isAudio><timeOut>300</timeOut><version>1.1.7.2</version><deviceIdx>0</deviceIdx><definitionAsk>15</definitionAsk><action>3</action><headLeft>16</headLeft><headRight>-16</headRight><headLow>-8</headLow><headHigh>8</headHigh><eyeDegree>27</eyeDegree><mouthDegree>27</mouthDegree><edage1>0.1</edage1><edage2>0.9</edage2><goodOne>0</goodOne></param>";

            result = axstdfcectl1.openDevice(Param);
            result = axstdfcectl1.getFaceB64A(IdCard, Serise, Param);
            bool right = IsRight(result);

            isInited     = right;
            this.handler = handler;
            return(isInited);
        }
Exemple #2
0
 public int Init(Control container, string args, LiveRecongtionCompletedHandler handler)
 {
     if (container == null)
     {
         throw new Exception("container参数为空");
     }
     if (container.Controls.Count > 0)
     {
         container.Controls.RemoveAt(0);
     }
     control.Size     = new System.Drawing.Size(640, 480);
     control.Location = new System.Drawing.Point(0, 0);
     container.Controls.Add(control);
     control.GetImageEvent += GetImageEvent;
     this.handler           = handler;
     this.args              = args;
     return(1);
 }
Exemple #3
0
        public int Init(Control container, LiveRecongtionCompletedHandler handler)
        {
            bool result = camera.Init(container);

            this.handler = handler;
            if (result)
            {
                handle = LD_Init_SDK(640, 480);
            }
            if (handle > 0)
            {
                isOpened = true; return(1);
            }
            else
            {
                return(0);
            }
        }
Exemple #4
0
 public int Init(Control container, LiveRecongtionCompletedHandler handler)
 {
     if (container == null)
     {
         throw new Exception("container参数为空");
     }
     if (container.Controls.Count > 0)
     {
         container.Controls.RemoveAt(0);
     }
     control.Size     = new System.Drawing.Size(640, 480);
     control.Location = new System.Drawing.Point(0, 0);
     container.Controls.Add(control);
     control.GetImageEvent += GetImageEvent;
     this.handler           = handler;
     this.args              = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<param>\n    <imgWidth>640</imgWidth>\n    <imgHeight>480</imgHeight>\n    <imgCompress>85</imgCompress>\n    <pupilDistMin>0</pupilDistMin>\n    <pupilDistMax>150</pupilDistMax>\n    <isActived>2</isActived>\n    <isAudio>1</isAudio>\n    <timeOut>300</timeOut>\n    <version>1.1.7.2</version>\n    <deviceIdx>0</deviceIdx>\n    <definitionAsk>15</definitionAsk>\n    <action>3</action>\n    <headLeft>16</headLeft>\n    <headRight>-16</headRight>\n    <headLow>-8</headLow>\n    <headHigh>8</headHigh>\n    <eyeDegree>27</eyeDegree>\n    <mouthDegree>27</mouthDegree>\n    <edage1>0.1</edage1>\n    <edage2>0.9</edage2>\n    <goodOne>0</goodOne>\n</param>\n";
     return(1);
 }