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); }
public RotationGesture(FaceRecognition recognizer, GestureGatherer gatherer) { recognizer.EventListeners += new FrameReceiverFunc(Compute); this.gatherer = gatherer; }