예제 #1
0
        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);
        }
예제 #3
0
 public static void SaveModel(CVModel model)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public static CVModel LoadModel(CVModel type, int id = 0)
 {
     throw new NotImplementedException();
 }