• 大小: 0.58M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: AForge  .NET  NET  抓拍  图片  

资源简介

     使用AForge.Net抓拍图片

代码片段和文件信息

using AForge.Video.DirectShow;
using System;
using System.Drawing;
using System.Windows.Forms;

namespace AForgeTestApp
{
    public partial class MainForm : Form
    {
        private FilterInfoCollection videoDevices;
        private VideoCaptureDevice videoSource;
        private int Indexof = 0;

        public MainForm()
        {
            InitializeComponent();
        }
        //添加所有的摄像头到combobox列表里
        private void Camlist()
        {
            videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);

            if (videoDevices.Count == 0)
            {
                MessageBox.Show(“未找到摄像头设备“);
            }
            foreach (FilterInfo device in videoDevices)
            {
                Cameralist.Items.Add(device.Na

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-03-17 09:07  AForgeTestApp\
     目录           0  2020-03-16 11:32  AForgeTestApp\.vs\
     目录           0  2020-03-16 11:32  AForgeTestApp\.vs\AForgeTestApp\
     目录           0  2020-03-16 11:32  AForgeTestApp\.vs\AForgeTestApp\v16\
     文件      253440  2020-03-17 09:50  AForgeTestApp\.vs\AForgeTestApp\v16\.suo
     目录           0  2020-03-16 11:32  AForgeTestApp\.vs\AForgeTestApp\v16\Server\
     目录           0  2020-03-16 15:12  AForgeTestApp\.vs\AForgeTestApp\v16\Server\sqlite3\
     文件           0  2020-03-16 11:32  AForgeTestApp\.vs\AForgeTestApp\v16\Server\sqlite3\db.lock
     文件      602112  2020-03-16 15:12  AForgeTestApp\.vs\AForgeTestApp\v16\Server\sqlite3\storage.ide
     文件        4330  2020-03-17 09:07  AForgeTestApp\AForgeTestApp.csproj
     文件        1131  2020-03-16 11:32  AForgeTestApp\AForgeTestApp.sln
     文件        4548  2020-03-17 09:07  AForgeTestApp\MainForm.Designer.cs
     文件        2660  2020-03-17 09:07  AForgeTestApp\MainForm.cs
     文件        5817  2020-03-17 09:07  AForgeTestApp\MainForm.resx
     文件         497  2020-03-17 09:06  AForgeTestApp\Program.cs
     目录           0  2020-03-16 11:32  AForgeTestApp\Properties\
     文件        1318  2020-03-16 11:32  AForgeTestApp\Properties\AssemblyInfo.cs
     文件        2839  2020-03-16 11:32  AForgeTestApp\Properties\Resources.Designer.cs
     文件        5612  2020-03-16 11:32  AForgeTestApp\Properties\Resources.resx
     文件        1100  2020-03-16 11:32  AForgeTestApp\Properties\Settings.Designer.cs
     文件         249  2020-03-16 11:32  AForgeTestApp\Properties\Settings.settings
     目录           0  2020-03-16 11:32  AForgeTestApp\bin\
     目录           0  2020-03-16 13:33  AForgeTestApp\bin\Debug\
     文件       44544  2013-07-15 23:04  AForgeTestApp\bin\Debug\AForge.Controls.dll
     文件       66108  2013-07-15 23:04  AForgeTestApp\bin\Debug\AForge.Controls.xml
     文件      262656  2013-07-15 23:04  AForgeTestApp\bin\Debug\AForge.Imaging.dll
     文件      944046  2013-07-15 23:04  AForgeTestApp\bin\Debug\AForge.Imaging.xml
     文件       68096  2013-07-15 23:04  AForgeTestApp\bin\Debug\AForge.Math.dll
     文件      270650  2013-07-15 23:04  AForgeTestApp\bin\Debug\AForge.Math.xml
     文件       61440  2013-07-15 23:04  AForgeTestApp\bin\Debug\AForge.Video.DirectShow.dll
     文件      195287  2013-07-15 23:04  AForgeTestApp\bin\Debug\AForge.Video.DirectShow.xml
............此处省略21个文件信息

评论

共有 条评论