• 大小: 68KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-05
  • 语言: C#
  • 标签: 摄像头  采集视频  

资源简介

本实例是通过C#技术驱动摄像头采集视频信息,核心代码是视频采集DLL

资源截图

代码片段和文件信息

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

namespace Camera
{
    public partial class Form1 : Form
    {
        WebCamera wc;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            b_play.Enabled = false;
            b_stop.Enabled = true;
            panelPreview.Size = new Size(330 330);
            wc = new WebCamera(panelPreview.Handle panelPreview.Width panelPreview.Height);
            wc.StartWebCam();
        }

        private void b_play_Click(object sender EventArgs e)
        {
            b_play.Enabled = false;
            b_stop.Enabled = true;
            panelPreview.Size = new Size(176 144);
            wc = new WebCamera(panelPreview.Handle panelPreview.Width panelPreview.Height);
            wc.StartWebCam();
        }

        private void b_stop_Click(object sender EventArgs e)
        {
            b_play.Enabled = true;
            b_stop.Enabled = false;
            wc.CloseWebcam();
        }



    }
}

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

     文件       5612  2007-10-28 23:35  Camera\Camera\Properties\Resources.resx

     文件        249  2007-10-28 23:35  Camera\Camera\Properties\Settings.settings

     文件       1160  2007-10-28 23:35  Camera\Camera\Properties\AssemblyInfo.cs

     文件       2867  2007-10-28 23:35  Camera\Camera\Properties\Resources.Designer.cs

     文件       1090  2007-10-28 23:35  Camera\Camera\Properties\Settings.Designer.cs

     文件       5814  2007-10-29 00:12  Camera\Camera\Form1.resx

     文件       3116  2007-10-29 00:12  Camera\Camera\Form1.Designer.cs

     文件       4428  2007-10-29 00:30  Camera\Camera\Camera.csproj

     文件       5632  2005-12-08 14:51  Camera\Camera\bin\Debug\Camera.vshost.exe

     文件      24576  2007-10-29 00:12  Camera\Camera\bin\Debug\Camera.exe

     文件      30208  2007-10-29 00:12  Camera\Camera\bin\Debug\Camera.pdb

     文件       5632  2005-12-08 14:51  Camera\Camera\bin\Release\Camera.vshost.exe

     文件       1460  2007-10-29 10:23  Camera\Camera\bin\Release\Camera.vshost.application

     文件       2120  2007-10-29 10:23  Camera\Camera\bin\Release\Camera.vshost.exe.manifest

     文件       2120  2007-10-29 10:23  Camera\Camera\bin\Release\Camera.exe.manifest

     文件       1460  2007-10-29 10:23  Camera\Camera\bin\Release\Camera.application

     文件      24576  2007-10-29 10:23  Camera\Camera\bin\Release\Camera.exe

     文件      28160  2007-10-29 10:23  Camera\Camera\bin\Release\Camera.pdb

     文件        180  2007-10-28 23:40  Camera\Camera\obj\Debug\Camera.Properties.Resources.resources

     文件      24576  2007-10-29 00:12  Camera\Camera\obj\Debug\Camera.exe

     文件        180  2007-10-29 00:12  Camera\Camera\obj\Debug\Camera.Form1.resources

     文件      30208  2007-10-29 00:12  Camera\Camera\obj\Debug\Camera.pdb

     文件        842  2007-10-29 00:12  Camera\Camera\obj\Debug\Camera.csproj.GenerateResource.Cache

     文件        668  2007-10-29 11:07  Camera\Camera\obj\Camera.csproj.FileList.txt

     文件        180  2007-10-29 09:45  Camera\Camera\obj\Release\Camera.Form1.resources

     文件        180  2007-10-29 09:45  Camera\Camera\obj\Release\Camera.Properties.Resources.resources

     文件        842  2007-10-29 09:45  Camera\Camera\obj\Release\Camera.csproj.GenerateResource.Cache

     文件      28160  2007-10-29 10:23  Camera\Camera\obj\Release\Camera.pdb

     文件      24576  2007-10-29 10:23  Camera\Camera\obj\Release\Camera.exe

     文件       2120  2007-10-29 10:23  Camera\Camera\obj\Release\Camera.exe.manifest

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

评论

共有 条评论