예제 #1
0
        public ParallelSwipeAnalyzer(FramesCollector framesCollector, long epsilon = 1000) : base(framesCollector)
        {
            Epsilon = epsilon;

            _leftHandSwipeAnalyzer = new SwipeAnalyzer(framesCollector, TJointType.HandLeft);
            _leftHandSwipeAnalyzer.SwipeDetected += (sender, args) => { _leftHandGestrue = new SwipeGestureWrapper(args.Gesture, DateTime.Now.Ticks); };

            _rightHandSwipeAnalyzer = new SwipeAnalyzer(framesCollector, TJointType.HandRight);
            _rightHandSwipeAnalyzer.SwipeDetected += (sender, args) => { _rightHandGestrue = new SwipeGestureWrapper(args.Gesture, DateTime.Now.Ticks); };
        }
예제 #2
0
        public ParallelSwipeAnalyzer(FramesCollector framesCollector, long epsilon = 1000)
            : base(framesCollector)
        {
            Epsilon = epsilon;

            _leftHandSwipeAnalyzer = new SwipeAnalyzer(framesCollector, TJointType.HandLeft);
            _leftHandSwipeAnalyzer.SwipeDetected += (sender, args) => { _leftHandGestrue = new SwipeGestureWrapper(args.Gesture, DateTime.Now.Ticks); };

            _rightHandSwipeAnalyzer = new SwipeAnalyzer(framesCollector, TJointType.HandRight);
            _rightHandSwipeAnalyzer.SwipeDetected += (sender, args) => { _rightHandGestrue = new SwipeGestureWrapper(args.Gesture, DateTime.Now.Ticks); };
        }