public BodyProcessor(Drawer drawer, EngagementManager eManager) { bodies = new Body[bodyCount]; this.drawer = drawer; this.eManager = eManager; }
//private EngagerTracker eTracker; public void start() { //eTracker = new EngagerTracker(); eManager = new EngagementManager(); man = new Manipulator(); //recogniser = new GestureRecogniser(); bodyProcessor = new BodyProcessor(drawer, eManager); faceProcessor = new FaceProcessor(); ffsDic = new Dictionary<FaceFrameSource, int>(); CoordinateConverter.Sensor = sensor; bodyCount = sensor.BodyFrameSource.BodyCount; readBodyFrame(); readFaceFrame(); }