Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The capture object can be used to give static files as input using the following code</p> <pre><code> Capture grabber = new Emgu.CV.Capture(@".\..\..\file.avi");//can be relative path or absolute path of the video file. </code></pre> <p>For finding the list of connected web cams will need to import something like Direct Show (DirectShow.Net.dll) into the project and use the following code to retrieve the list of connected web cams .</p> <pre><code> DsDevice[] _SystemCamereas = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice); Video_Device[] WebCams = new Video_Device[_SystemCamereas.Length]; for (int i = 0; i &lt; _SystemCamereas.Length; i++) { WebCams[i] = new Video_Device(i, _SystemCamereas[i].Name, _SystemCamereas[i].ClassID); //fill web cam array Camera_Selection.Items.Add(WebCams[i].ToString()); } </code></pre> <p>Check this link for the full code <a href="http://www.emgu.com/wiki/index.php?title=Camera_Capture" rel="nofollow">http://www.emgu.com/wiki/index.php?title=Camera_Capture</a></p> <p>This list can be populated into a combo box and each connected device can be chosen to retrieve the video input from the specific device. </p> <p>Example can be found here: <a href="http://fewtutorials.bravesites.com/entries/emgu-cv-c/level-2---use-multiple-cameras-in-one-application" rel="nofollow">http://fewtutorials.bravesites.com/entries/emgu-cv-c/level-2---use-multiple-cameras-in-one-application</a>.</p> <p>For your last question the Default Camera always has the index of 0. So for initializing the Capture Object with default camera you will have to use the following code </p> <pre><code>Capture grabber = new Emgu.CV.Capture(0); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload