BalaShiyamala / opencvdotnet

Automatically exported from code.google.com/p/opencvdotnet
0 stars 0 forks source link

Enable to get frame from 2 cam #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create 2 CVCapture object : 
   cap1 = new CVCapture(0); and cap2 = new CVCapture(1)

2. try to get frame from the cam every seconds :
   using (CVImage nextFrame = cap1.QueryFrame())
   {
     pictureBox1.Image = nextFrame.ToBitmap();
   }
   using (CVImage nextFrame = cap2.QueryFrame())
   {
     pictureBox2.Image = nextFrame.ToBitmap();
   }

What is the expected output? What do you see instead?
Sometime pictureBox2 stay black, sometime i have a NullPointer Exception
when try to execute nextFrame.ToBitmap()

What version of the product are you using? On what operating system?
OpenCVDotNet 0.7, WinXP SP2

Please provide any additional information below.

Original issue reported on code.google.com by marco.ga...@gmail.com on 19 Aug 2008 at 8:01