Exemplo n.º 1
0
        public DataAnalyser(Records record, int gestureId)
        {
            _videoFrame =  new List<VideoFrames>();
            _record = record;

            GetDepthCameraInfo();
            CreateVideoForm();

            graphics = _videoAnalyserForm.CreateGraphics();
            _videoAnalyserForm.DataAnalyzer = this;
            _trackingSystem = new TrackingSystem();
            _maximaTrackingSystem = new MaximaTrackingSystem(_trackingSystem, gestureId);
        }
 public int AddNewRecord(string recordUrl, bool isRgb)
 {
     var newRecord = new Records { AbsolutePath = recordUrl, IsRgb = isRgb };
     _dbStore.Records.Add(newRecord);
     return _dbStore.SaveChanges();
 }
Exemplo n.º 3
0
 private void RecordsGridView_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
 {
     if (RecordsGridView.Rows.Count > 0)
     {
         var row = (DataGridView)sender;
         RecordsGridView.Rows[0].Selected = true;
         _selectedRecord = ((List<GestureRecognition.Data.Models.Records>)row.DataSource)[0];
     }
 }
Exemplo n.º 4
0
 private void RecirdsGridView_SelectionChanged(object sender, EventArgs e)
 {
     if (RecordsGridView.Rows.Count > 0)
     {
         var row = (DataGridView)sender;
         if (row.CurrentRow != null)
         {
             _selectedRecord = ((List<GestureRecognition.Data.Models.Records>)row.DataSource)[row.CurrentRow.Index];
         }
     }
 }
Exemplo n.º 5
0
        private void OpenRecord_Click(object sender, EventArgs e)
        {
            VideoCaptureDeviceForm form = new VideoCaptureDeviceForm();

            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                // create video source
                FileVideoSource fileSource = new FileVideoSource(openFileDialog.FileName);
                _recordToSave = new Records { AbsolutePath = openFileDialog.FileName };
                // open it
                OpenVideoSource(fileSource);
            }

            if (RecordsGridView.Rows.Count > 0)
            {
                RecordsGridView.CurrentRow.Selected = false;
            }
        }