Ask Your Question

Revision history [back]

Capture Class & Axis Camera

Hello,

I can connect to robot Axis cameras, but I can not set Capture class to get frames from these Camera devices ? or is there any other method to do that!

 Video_Source1.MediaURL = CompleteURL("192.168.0.57:8083", "mjpeg");
 Video_Source1.Play();


 Video_Source2.MediaURL = CompleteURL("192.168.0.58:8082", "mjpeg");
 Video_Source2.Play();

  _Capture1 = new Capture(here is the problem);
  _Capture2 = new Capture(here is the problem);

   _Capture1.ImageGrabbed += ProcessFrame;
   _Capture1.Start();

    }

    private void ProcessFrame(object sender, EventArgs arg)
    {
      Image<Bgr, Byte> frame_S1 = _Capture1.RetrieveBgrFrame();
      Image<Bgr, Byte> frame_S2 = _Capture2.RetrieveBgrFrame();
        .
        .
        .
    }

Capture Class & Axis Camera

Hello,

I can connect to robot Axis cameras, but I can not set Capture class to get frames from these Camera devices ? or is there any other method to do that!

 this.Video_Source1 = new AxAXISMEDIACONTROLLib.AxAxisMediaControl();
 this.Video_Source2 = new AxAXISMEDIACONTROLLib.AxAxisMediaControl();


 Video_Source1.MediaURL = CompleteURL("192.168.0.57:8083", "mjpeg");
 Video_Source1.Play();


 Video_Source2.MediaURL = CompleteURL("192.168.0.58:8082", "mjpeg");
 Video_Source2.Play();

  _Capture1 = new Capture(here is the problem);
  _Capture2 = new Capture(here is the problem);

   _Capture1.ImageGrabbed += ProcessFrame;
   _Capture1.Start();

    }

    private void ProcessFrame(object sender, EventArgs arg)
    {
      Image<Bgr, Byte> frame_S1 = _Capture1.RetrieveBgrFrame();
      Image<Bgr, Byte> frame_S2 = _Capture2.RetrieveBgrFrame();
        .
        .
        .
    }