Ejemplo 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;
        }
Ejemplo 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;
        }