Emgu.CV.Capture.SetCaptureProperty C# (CSharp) Метод

SetCaptureProperty() публичный Метод

Sets the specified property of video capturing
public SetCaptureProperty ( CvEnum property, double value ) : void
property CvEnum Property identifier
value double Value of the property
Результат void
      public void SetCaptureProperty(CvEnum.CAP_PROP property, double value)
      {
         CvInvoke.cvSetCaptureProperty(Ptr, property, value);
      }

Usage Example

Пример #1
1
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            m_Playing = true;
            m_Engine = new Engine.Engine();

            if (RadioButtonWebcam.IsChecked.Value)
            {
                m_Capture = new Capture(0);
                m_Capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_WIDTH, 1280);
                m_Capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT, 720);
            }
            else
            {
                m_Capture = new Capture(System.IO.Path.GetFullPath(".\\..\\Videos\\vidD.mp4"));
            }

            m_Timer = new Timer(ExpectedFrameUpdate, null, 0, 1000 / 15);

            m_DisplayFrames = new Thread(ShowFrames);
            m_DisplayFrames.Start();
        }
All Usage Examples Of Emgu.CV.Capture::SetCaptureProperty