コード例 #1
0
 protected Processor(ProcessingParameters processingParameters)
 {
     this.processingParameters = processingParameters;
     playback = new Record.Playback(processingParameters.MkvPath);
     playback.GetRecordConfiguration(out recordConfig);
     RecordLength = playback.RecordLength;
     playback.GetCalibration(out calibration);
     if (processingParameters.StartTime.HasValue)
     {
         Seek(processingParameters.StartTime.Value);
     }
     tracker = new BodyTracking.Tracker(ref calibration);
 }
コード例 #2
0
        protected Processor(ProcessingParameters processingParameters)
        {
            this.processingParameters = processingParameters;
            playback = new Record.Playback(processingParameters.MkvPath);
            playback.GetRecordConfiguration(out recordConfig);
            RecordLength = playback.RecordLength;
            playback.GetCalibration(out calibration);
            if (processingParameters.StartTime.HasValue)
            {
                Seek(processingParameters.StartTime.Value);
            }
            var config = BodyTracking.TrackerConfiguration.Default;

            config.ProcessingMode = processingParameters.CpuOnlyMode
                ? BodyTracking.TrackerProcessingMode.Cpu
                : BodyTracking.TrackerProcessingMode.Gpu;
            tracker = new BodyTracking.Tracker(ref calibration, config);
        }