Exemplo n.º 1
0
        public Face(IFaceRecognizer faceRecognizer)
        {
            _faceRecognizer = faceRecognizer;
            Mouth           = new Mouth();
            LeftEye         = new Eye(Side.Left);
            RightEye        = new Eye(Side.Right);

            Mouth.Opened    += DetectYawn;
            LeftEye.Closed  += DetectYawn;
            RightEye.Closed += DetectYawn;
        }
Exemplo n.º 2
0
        public Face(IFaceRecognizer faceRecognizer)
        {
            _faceRecognizer = faceRecognizer;
            Mouth = new Mouth();
            LeftEye = new Eye(Side.Left);
            RightEye = new Eye(Side.Right);

            Mouth.Opened += DetectYawn;
            LeftEye.Closed += DetectYawn;
            RightEye.Closed += DetectYawn;
        }