Example #1
0
 public PostSkeletonData(SysParameter parameter)
 {
     this.parameter    = parameter;
     this.MaxFrameDiff = 5.0f;
     this.KeyFramesSkeletonDataList = new List <List <float> >();
     this.LastFrameSkeletonData     = new List <float>();
     this.FramesDiffQueue           = new Queue <KeyValuePair <float, bool> >();
 }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();
            this.sysState         = new SystemState();
            this.sysParameter     = new SysParameter();
            this.recResult        = new RecognitionResult();
            this.postSkeletonData = new PostSkeletonData(sysParameter);
            this.visualFrameData  = new VisualFrameData();

            labResult.DataContext            = recResult;
            sldKeyFrameThreshold.DataContext = sysParameter;
            Logger.LogMessage += this.Logger_LogMessage;
        }
Example #3
0
        //Updata system parameter
        private async void UpdataSysParameter()
        {
            try
            {
                this.sysParameter = await this.client.getSysParameterAsync();

                this.postSkeletonData.parameter = sysParameter;
                rtbLoggerInfo.AppendText(utils.GenLogString(this.sysParameter.ToString()));
            }
            catch (Exception ex)
            {
                rtbLoggerInfo.AppendText(utils.GenLogString("Server Connect Error"));
                utils.ShowErrorMsg(ex.Message);
            }
        }
Example #4
0
 public PostData(SysParameter parameter, List <float> skeleton_data)
 {
     this.parameter     = parameter;
     this.skeleton_data = skeleton_data;
 }