public void Setup() { Configuration.postureNavigation = true; SynchronizationContext.SetSynchronizationContext(new SynchronizationContext()); Kinect = new TKinect.TKinect(); var framesCollector = new FramesCollector(Kinect, 30); PostureAnalyzer = new PostureAnalyzer(framesCollector, 25); PostureAnalyzer.PostureDetected += PostureAnalyzerOnPostureDetected; }
public HelloKinect() { //Initialize TKinect TKinect = new TKinect.TKinect(); //Initialize KinectToolBox frame collector SynchronizationContext.SetSynchronizationContext(new SynchronizationContext()); var framesCollector = new FramesCollector(TKinect, 30); //Create and use one of analyzers PostureAnalyzer = new PostureAnalyzer(framesCollector, 25); Configuration.postureNavigation = true; PostureAnalyzer.PostureDetected += PostureAnalyzerOnPostureDetected; }
private void RegisterOnKinectEvents() { //var kinectSensor = DependencyFactory.Container.Resolve<KinectSensor>(); var testKinect = DependencyFactory.Container.Resolve<TKinect.TKinect>(); var framesCollector = new FramesCollector(testKinect, 30); _postureAnalyzer = new PostureAnalyzer(framesCollector, 25); _postureAnalyzer.PostureDetected += PostureAnalyzerOnPostureDetected; var stabilityFramesCollector = new FramesCollector(testKinect, 40); var HandCollector = new FramesCollector(testKinect, 10); var trafficReduceExtension = new TrafficReduceExtension(0); _handNavigationAnalyzer = new HandInFrontAnalyzer(HandCollector); _handNavigationAnalyzer.AddBeforeAnalyzeExtension(trafficReduceExtension); _handNavigationAnalyzer.MovementDetected += MovementAnalyzerOnOnMovementGestureDetected; }