• 大小: 0.33M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 摄像头  C#  c  

资源简介

用于c#获取多个摄像头影像!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using AForge.Video;
using AForge.Video.DirectShow;

namespace TwoCamerasTest
{
    public partial class MainForm : Form
    {
        // list of video devices
        FilterInfoCollection videoDevices;

        VideoCaptureDevice videoSource1;
        VideoCaptureDevice videoSource2;

        public MainForm()
        {
            InitializeComponent();

            // show device list
            try
            {
                // enumerate video devices
                videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);

                if (videoDevices.Count == 0)
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-04-12 11:21  TwoCamerasTest\
     目录           0  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\
     目录           0  2011-04-12 11:21  TwoCamerasTest\TwoCamerasTest\bin\
     目录           0  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\bin\Debug\
     文件       32768  2011-01-12 17:31  TwoCamerasTest\TwoCamerasTest\bin\Debug\AForge.Video.DirectShow.dll
     文件      145755  2011-01-12 17:31  TwoCamerasTest\TwoCamerasTest\bin\Debug\AForge.Video.DirectShow.xml
     文件       15872  2011-01-12 17:31  TwoCamerasTest\TwoCamerasTest\bin\Debug\AForge.Video.dll
     文件       40168  2011-01-12 17:31  TwoCamerasTest\TwoCamerasTest\bin\Debug\AForge.Video.xml
     文件        1509  2011-05-04 18:22  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.application
     文件       24576  2011-05-04 18:22  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.exe
     文件        3498  2011-05-04 18:22  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.exe.manifest
     文件       30208  2011-05-04 18:22  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.pdb
     目录           0  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.publish\
     文件      431560  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.publish\setup.exe
     文件        5248  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.publish\TwoCamerasTest.application
     目录           0  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.publish\TwoCamerasTest_1_0_0_2\
     文件       32768  2011-01-12 17:31  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.publish\TwoCamerasTest_1_0_0_2\AForge.Video.DirectShow.dll.deploy
     文件       15872  2011-01-12 17:31  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.publish\TwoCamerasTest_1_0_0_2\AForge.Video.dll.deploy
     文件       24576  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.publish\TwoCamerasTest_1_0_0_2\TwoCamerasTest.exe.deploy
     文件        7178  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.publish\TwoCamerasTest_1_0_0_2\TwoCamerasTest.exe.manifest
     文件        1509  2011-05-04 18:22  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.vshost.application
     文件        5632  2005-09-23 06:56  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.vshost.exe
     文件        3498  2011-05-04 18:22  TwoCamerasTest\TwoCamerasTest\bin\Debug\TwoCamerasTest.vshost.exe.manifest
     文件        5345  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\MainForm.cs
     文件        8372  2011-04-12 15:02  TwoCamerasTest\TwoCamerasTest\MainForm.Designer.cs
     文件        5814  2011-04-12 15:02  TwoCamerasTest\TwoCamerasTest\MainForm.resx
     目录           0  2011-04-12 11:21  TwoCamerasTest\TwoCamerasTest\obj\
     目录           0  2011-05-04 15:06  TwoCamerasTest\TwoCamerasTest\obj\Debug\
     目录           0  2011-04-12 11:21  TwoCamerasTest\TwoCamerasTest\obj\Debug\Refactor\
     文件       12294  2011-04-12 11:32  TwoCamerasTest\TwoCamerasTest\obj\Debug\ResolveAssemblyReference.cache
     目录           0  2011-04-12 11:21  TwoCamerasTest\TwoCamerasTest\obj\Debug\TempPE\
............此处省略20个文件信息

评论

共有 条评论