I can get AForge to work with an USB web cam, but I have a video card that can connect to multiple cameras. How do I get AForge to work with the video card?
My issue is I could not get the VideoInputDevice
to set to a working video input.
The code is like this:
void init(){
FilterInfoCollection videoCaptureDevice =
new FilterInfoCollection(FilterCategory.VideoInputDevice);
VideoCaptureDevice finalVideo =
new VideoCaptureDevice(videoCaptureDevice[0].MonikerString);
finalVideo.NewFrame += new NewFrameEventHandler(finalVideo_NewFrame);
finalVideo.Start();
}
public void finalVideo_NewFrame(object sender, NewFrameEventArgs eventArgs)
{
Bitmap temp = (Bitmap)eventArgs.Frame.Clone();
pictureBox1.Image = temp;
}
I also tried:
finalVideo = new VideoCaptureDevice();
finalVideo.CrossbarVideoInput = VideoInput.Default;
and it did not work either.
Any help is highly appreciated.