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); }
/// <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; }