• 大小: 0.01M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-23
  • 语言: C#
  • 标签: Grid  20  C#  AForge  

资源简介

C#拍照软件

资源截图

代码片段和文件信息

/**
 * @Author: Kheir Eddine FARFAR
 * @Author Github: https://github.com/Reddine
 * @Description: Capture Images from WebCam
 */

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

using AForge.Video.DirectShow;
using System.Drawing.Imaging;
using System.Net;
using System.IO;

namespace Inscription
{
    public partial class Form1 : Form
    {
        FilterInfoCollection videoDevices;

        public Form1()
        {
            InitializeComponent();

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

                if (videoDevices.Count == 0)
                    throw new ApplicationException();

                // add all devices to combo
                foreach (FilterInfo 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\
     文件        2696  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\.gitignore
     文件         980  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription.sln
     目录           0  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\
     文件         182  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\App.config
     文件        4698  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Form1.Designer.cs
     文件        2958  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Form1.cs
     文件        5698  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Form1.resx
     文件        4705  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Inscription.csproj
     文件         512  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Program.cs
     目录           0  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Properties\
     文件        1398  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Properties\AssemblyInfo.cs
     文件        2777  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Properties\Resources.Designer.cs
     文件        5496  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Properties\Resources.resx
     文件        1063  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Properties\Settings.Designer.cs
     文件         242  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\Inscription\Properties\Settings.settings
     文件         839  2015-01-24 18:14  Webcam-Capture-AForge.Net-master\README.md

评论

共有 条评论