コード例 #1
0
        public FaceRecognition(int ms)
        {
            this.msInterval = ms;
            try
            {
                _capture = new Capture();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Initialization error");
                return;
            }
            this.detectors = new HaarDetectors();

            GestureGatherer gestureProcessor = new GestureGatherer();
            RotationGesture rotationGesture  = new RotationGesture(this, gestureProcessor);
        }
コード例 #2
0
 public RotationGesture(FaceRecognition recognizer, GestureGatherer gatherer)
 {
     recognizer.EventListeners += new FrameReceiverFunc(Compute);
     this.gatherer              = gatherer;
 }