CURELab.SignLanguage.HandDetector.VideoProcessor.SetCurrentFrame C# (CSharp) Method

SetCurrentFrame() public method

public SetCurrentFrame ( int index ) : void
index int
return void
        public void SetCurrentFrame(int index)
        {
            if (index == CurrentFrame)
            {
                return;
            }
            if (_DCapture != null)
            {
                _DCapture.SetCaptureProperty(CAP_PROP.CV_CAP_PROP_POS_FRAMES, index);
            }
            if (_CCapture != null)
            {
                _CCapture.SetCaptureProperty(CAP_PROP.CV_CAP_PROP_POS_FRAMES, index);
            }
            CurrentFrame = index;
            ProcessFrame();
        }

Usage Example

Example #1
0
 private void sld_progress_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     if (m_VideoProcessor != null)
     {
         if ((int)e.OldValue != (int)e.NewValue)
         {
             m_VideoProcessor.SetCurrentFrame((int)e.NewValue);
         }
     }
 }