• 大小: 0.18M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 视频  AForge  winform  

资源简介

使用WinForm结合AForge制作的本地摄像头案例

资源截图

代码片段和文件信息

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

using AForge;
using AForge.Video;
using AForge.Video.DirectShow;
using AForge.Imaging;
using AForge.Imaging.Filters;

namespace Camera
{
    public partial class Form1 : Form
    {
        private FilterInfoCollection videoDevices;

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            try
            {
                // 枚举所有视频输入设备
                videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);

             

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      14336  2008-10-12 13:34  Camera\Camera\Camera\bin\Debug\AForge.Controls.dll

     文件       9728  2008-11-16 11:45  Camera\Camera\Camera\bin\Debug\AForge.dll

     文件      97792  2008-11-18 10:46  Camera\Camera\Camera\bin\Debug\AForge.Imaging.dll

     文件      27136  2008-10-12 13:34  Camera\Camera\Camera\bin\Debug\AForge.Video.DirectShow.dll

     文件      13312  2008-10-12 13:34  Camera\Camera\Camera\bin\Debug\AForge.Video.dll

     文件      12800  2016-08-20 16:36  Camera\Camera\Camera\bin\Debug\Camera.exe

     文件      28160  2016-08-20 16:36  Camera\Camera\Camera\bin\Debug\Camera.pdb

     文件      21472  2016-08-20 17:19  Camera\Camera\Camera\bin\Debug\Camera.vshost.exe

     文件        490  2012-06-06 02:06  Camera\Camera\Camera\bin\Debug\Camera.vshost.exe.manifest

     文件       3994  2012-04-21 16:39  Camera\Camera\Camera\Camera.csproj

     文件       2174  2012-04-21 17:00  Camera\Camera\Camera\Form1.cs

     文件       5398  2012-04-21 16:56  Camera\Camera\Camera\Form1.Designer.cs

     文件       8399  2012-04-21 16:56  Camera\Camera\Camera\Form1.resx

     文件      14336  2008-10-12 13:34  Camera\Camera\Camera\Include\AForge.Controls.dll

     文件       9728  2008-11-16 11:45  Camera\Camera\Camera\Include\AForge.dll

     文件      97792  2008-11-18 10:46  Camera\Camera\Camera\Include\AForge.Imaging.dll

     文件      27136  2008-10-12 13:34  Camera\Camera\Camera\Include\AForge.Video.DirectShow.dll

     文件      13312  2008-10-12 13:34  Camera\Camera\Camera\Include\AForge.Video.dll

     文件       1942  2016-08-20 17:19  Camera\Camera\Camera\obj\x86\Debug\Camera.csproj.FileListAbsolute.txt

     文件        774  2016-08-20 16:36  Camera\Camera\Camera\obj\x86\Debug\Camera.csproj.GenerateResource.Cache

     文件      18852  2016-08-20 16:36  Camera\Camera\Camera\obj\x86\Debug\Camera.csprojResolveAssemblyReference.cache

     文件      12800  2016-08-20 16:36  Camera\Camera\Camera\obj\x86\Debug\Camera.exe

     文件       1968  2016-08-20 16:36  Camera\Camera\Camera\obj\x86\Debug\Camera.Form1.resources

     文件      28160  2016-08-20 16:36  Camera\Camera\Camera\obj\x86\Debug\Camera.pdb

     文件        180  2016-08-20 16:36  Camera\Camera\Camera\obj\x86\Debug\Camera.Properties.Resources.resources

     文件      12457  2016-08-20 16:34  Camera\Camera\Camera\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6477  2016-08-20 16:34  Camera\Camera\Camera\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       3806  2012-04-21 16:56  Camera\Camera\Camera\obj\x86\Debug\ResGen.read.1.tlog

     文件        700  2012-04-21 16:56  Camera\Camera\Camera\obj\x86\Debug\ResGen.write.1.tlog

     文件      17492  2012-04-21 16:31  Camera\Camera\Camera\obj\x86\Debug\ResolveAssemblyReference.cache

............此处省略23个文件信息

评论

共有 条评论