public void Update(CVFaceFrame face, CVModel recModel) { switch (this.Status) { case PersonStatus.Recognizing: if (recModel.ClassifySample(face) == 1) { recModel.ClassifySample(face); } break; case PersonStatus.Training: break; } }
public FrameController() { FrameSourceTypes type = FrameSourceTypes.Color; dataExtractor = new DataExtractor(type); dataExtractor.OnFrameArrived += KinectFrameReceivedEvent; this.FrameHeightColor = dataExtractor.FrameHeightColor; this.FrameWidthColor = dataExtractor.FrameWidthColor; this.FrameHeightDepth = dataExtractor.FrameHeightDepth; this.FrameWidthDepth = dataExtractor.FrameWidthDepth; this.Sensor = dataExtractor.Sensor; this.people = new Person[Sensor.BodyFrameSource.BodyCount]; this.settings = Settings.Instance(); this.db = new Database(); this.recModel = Database.LoadModel(CVModelType.PCA_SVM); }
public static void SaveModel(CVModel model) { throw new NotImplementedException(); }
public static CVModel LoadModel(CVModel type, int id = 0) { throw new NotImplementedException(); }