Capture Class & Axis Camera

asked 2013-04-24 02:45:57 -0500

yamanneameh gravatar image

updated 2013-04-24 02:50:23 -0500

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();
        .
        .
        .
    }
edit retag flag offensive close merge delete