示例#1
0
        public void AllFeaturesTest()
        {
            var expected = FaceFrameFeatures.BoundingBoxInColorSpace
                           | FaceFrameFeatures.PointsInColorSpace
                           | FaceFrameFeatures.RotationOrientation
                           | FaceFrameFeatures.FaceEngagement
                           | FaceFrameFeatures.Glasses
                           | FaceFrameFeatures.Happy
                           | FaceFrameFeatures.LeftEyeClosed
                           | FaceFrameFeatures.RightEyeClosed
                           | FaceFrameFeatures.LookingAway
                           | FaceFrameFeatures.MouthMoved
                           | FaceFrameFeatures.MouthOpen;

            var sut = FaceUtils.AllFeatures();

            Assert.AreEqual(expected, sut);
        }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="sensor">Kinect sensor</param>
 public SingleFaceProcessor(KinectSensor sensor)
 {
     this.frameSource = new FaceFrameSource(sensor, 0, FaceUtils.AllFeatures());
     this.framereader = this.frameSource.OpenReader();
     this.framereader.FrameArrived += this.FrameArrived;
 }