コード例 #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;
            }
        }
コード例 #2
0
        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();
 }