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

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing.Imaging;
using System.Text;
using System.Windows;
using System.Windows.Forms;
using System.IO;
using System.Windows.Media.Imaging;
using AForge;
using AForge.Controls;
using AForge.Video;
using AForge.Video.DirectShow;
using Size = System.Drawing.Size;


namespace OperateCamera
{
    public partial class Form1 : Form
    {
        private FilterInfoCollection videoDevices;
        private VideoCaptureDevice videoSource;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            
            try
            {
                // 枚举所有视频输入设备
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-02-16 21:12  OperateCamera\
     目录           0  2014-02-16 17:57  OperateCamera\bin\
     目录           0  2014-02-16 22:13  OperateCamera\bin\Debug\
     文件       44544  2013-07-15 23:04  OperateCamera\bin\Debug\AForge.Controls.dll
     文件       17920  2013-07-15 23:04  OperateCamera\bin\Debug\AForge.dll
     文件      262656  2013-07-15 23:04  OperateCamera\bin\Debug\AForge.Imaging.dll
     文件       61440  2013-07-15 23:04  OperateCamera\bin\Debug\AForge.Video.DirectShow.dll
     文件       20992  2013-07-15 23:04  OperateCamera\bin\Debug\AForge.Video.dll
     目录           0  2014-02-16 21:02  OperateCamera\bin\Debug\Images\
     文件       12288  2014-02-16 22:21  OperateCamera\bin\Debug\OperateCamera.exe
     文件       28160  2014-02-16 22:21  OperateCamera\bin\Debug\OperateCamera.pdb
     文件       11600  2014-02-16 22:23  OperateCamera\bin\Debug\OperateCamera.vshost.exe
     目录           0  2014-02-16 22:14  OperateCamera\bin\Debug\PersonImg\
     目录           0  2014-02-16 17:57  OperateCamera\bin\Release\
     文件        4468  2014-02-17 00:08  OperateCamera\Form1.cs
     文件        5322  2014-02-17 00:08  OperateCamera\Form1.Designer.cs
     文件        5817  2014-02-17 00:08  OperateCamera\Form1.resx
     目录           0  2014-02-16 20:30  OperateCamera\lib\
     文件       44544  2013-07-15 23:04  OperateCamera\lib\AForge.Controls.dll
     文件       17920  2013-07-15 23:04  OperateCamera\lib\AForge.dll
     文件      262656  2013-07-15 23:04  OperateCamera\lib\AForge.Imaging.dll
     文件       61440  2013-07-15 23:04  OperateCamera\lib\AForge.Video.DirectShow.dll
     文件       20992  2013-07-15 23:04  OperateCamera\lib\AForge.Video.dll
     目录           0  2014-02-16 17:21  OperateCamera\obj\
     目录           0  2014-02-16 17:21  OperateCamera\obj\x86\
     目录           0  2014-02-16 22:21  OperateCamera\obj\x86\Debug\
     文件        2152  2014-02-16 17:21  OperateCamera\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7246  2014-02-16 22:21  OperateCamera\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         328  2014-02-16 22:12  OperateCamera\obj\x86\Debug\GenerateResource.read.1.tlog
     文件         778  2014-02-16 22:12  OperateCamera\obj\x86\Debug\GenerateResource.write.1.tlog
     文件        1676  2014-02-16 22:23  OperateCamera\obj\x86\Debug\OperateCamera.csproj.FileListAbsolute.txt
............此处省略15个文件信息

评论

共有 条评论