Skip to content

Commit

Permalink
Try to create Video capture instance on BuildInfo demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
emgucv committed Feb 12, 2021
1 parent a9d516b commit a8b7f59
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Emgu.CV.Example/BuildInfo.NetCore.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,16 @@ private static String GetCaptureInfo()
captureBackendsText.Add(String.Format("{0} - {1}", captureBackend.ID, captureBackend.Name));
}


String captureText = String.Format("Capture backends: {0}{1}", System.Environment.NewLine, String.Join(System.Environment.NewLine, captureBackendsText.ToArray()));
using (VideoCapture cap = new VideoCapture())
{
if (cap.IsOpened)
{
String backendName = cap.BackendName;
captureText += String.Format("{0}Capture device successfully opened with default backend: {1}", System.Environment.NewLine, backendName);
}
}
return captureText;
}

Expand Down

0 comments on commit a8b7f59

Please sign in to comment.