• 大小: 0.74M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 摄像头  拍照  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
            {
                // 枚举所有视频输入设备
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        5322  2014-02-17 00:08  Form1.Designer.cs
     文件        4474  2017-03-02 10:09  Form1.cs
     文件        5817  2014-02-17 00:08  Form1.resx
     文件       32256  2017-03-02 10:08  obj\x86\Debug\OperateCamera.pdb
     文件       12800  2017-03-02 10:08  obj\x86\Debug\OperateCamera.exe
     文件       30338  2017-03-02 08:31  obj\x86\Debug\OperateCamera.csprojResolveAssemblyReference.cache
     文件         975  2017-03-02 08:31  obj\x86\Debug\OperateCamera.csproj.GenerateResource.Cache
     文件        2661  2017-03-02 10:09  obj\x86\Debug\OperateCamera.csproj.FileListAbsolute.txt
     文件         180  2014-02-16 22:12  obj\x86\Debug\OperateCamera.Properties.Resources.resources
     文件         180  2017-03-02 08:31  obj\x86\Debug\OperateCamera.Form1.resources
     文件         778  2014-02-16 22:12  obj\x86\Debug\GenerateResource.write.1.tlog
     文件         328  2014-02-16 22:12  obj\x86\Debug\GenerateResource.read.1.tlog
     文件        7607  2017-03-02 10:05  obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        2152  2014-02-16 17:21  obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     目录           0  2017-03-02 10:08  obj\x86\Debug\
     目录           0  2017-03-02 08:31  obj\x86\
     目录           0  2017-03-02 08:31  obj\
     文件       17920  2013-07-15 23:04  lib\AForge.dll
     文件       20992  2013-07-15 23:04  lib\AForge.Video.dll
     文件       61440  2013-07-15 23:04  lib\AForge.Video.DirectShow.dll
     文件      262656  2013-07-15 23:04  lib\AForge.Imaging.dll
     文件       44544  2013-07-15 23:04  lib\AForge.Controls.dll
     目录           0  2017-03-02 08:31  lib\
     目录           0  2017-03-02 10:09  bin\Release\
     目录           0  2017-03-02 10:09  bin\Debug\PersonImg\
     文件         490  2010-03-17 22:39  bin\Debug\OperateCamera.vshost.exe.manifest
     文件       22984  2017-03-02 10:09  bin\Debug\OperateCamera.vshost.exe
     文件       32256  2017-03-02 10:08  bin\Debug\OperateCamera.pdb
     文件       12800  2017-03-02 10:08  bin\Debug\OperateCamera.exe
     文件       17920  2013-07-15 23:04  bin\Debug\AForge.dll
     文件       20992  2013-07-15 23:04  bin\Debug\AForge.Video.dll
............此处省略62个文件信息

评论

共有 条评论