資源簡介
C#連接攝像頭,可以干好多事情了,自己擴展,這個只是個demo
代碼片段和文件信息
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??2016-12-14?23:08??連接電腦攝像頭\
?????文件????????5605??2016-12-14?23:05??連接電腦攝像頭\Form1.Designer.cs
?????文件????????4536??2016-12-14?23:06??連接電腦攝像頭\Form1.cs
?????文件????????5817??2016-12-14?23:05??連接電腦攝像頭\Form1.resx
?????文件????????4450??2014-02-16?21:16??連接電腦攝像頭\OperateCamera.csproj
?????文件?????????227??2014-02-16?20:18??連接電腦攝像頭\OperateCamera.csproj.user
?????文件????????3584??2016-12-14?23:08??連接電腦攝像頭\OperateCamera.v12.suo
?????文件?????????494??2014-02-16?17:21??連接電腦攝像頭\Program.cs
?????目錄???????????0??2014-02-16?17:21??連接電腦攝像頭\Properties\
?????文件????????1358??2014-02-16?17:21??連接電腦攝像頭\Properties\AssemblyInfo.cs
?????文件????????2877??2014-02-16?17:21??連接電腦攝像頭\Properties\Resources.Designer.cs
?????文件????????5612??2014-02-16?17:21??連接電腦攝像頭\Properties\Resources.resx
?????文件????????1099??2014-02-16?17:21??連接電腦攝像頭\Properties\Settings.Designer.cs
?????文件?????????249??2014-02-16?17:21??連接電腦攝像頭\Properties\Settings.settings
?????目錄???????????0??2016-12-14?23:08??連接電腦攝像頭\Service?References\
?????目錄???????????0??2014-02-16?17:57??連接電腦攝像頭\bin\
?????目錄???????????0??2016-12-14?23:02??連接電腦攝像頭\bin\Debug\
?????文件???????44544??2013-07-15?23:04??連接電腦攝像頭\bin\Debug\AForge.Controls.dll
?????文件??????262656??2013-07-15?23:04??連接電腦攝像頭\bin\Debug\AForge.Imaging.dll
?????文件???????61440??2013-07-15?23:04??連接電腦攝像頭\bin\Debug\AForge.Video.DirectShow.dll
?????文件???????20992??2013-07-15?23:04??連接電腦攝像頭\bin\Debug\AForge.Video.dll
?????文件???????17920??2013-07-15?23:04??連接電腦攝像頭\bin\Debug\AForge.dll
?????目錄???????????0??2016-12-14?23:08??連接電腦攝像頭\bin\Debug\Images\
?????文件???????12800??2016-12-14?23:06??連接電腦攝像頭\bin\Debug\OperateCamera.exe
?????文件???????32256??2016-12-14?23:06??連接電腦攝像頭\bin\Debug\OperateCamera.pdb
?????文件???????24224??2016-12-14?23:08??連接電腦攝像頭\bin\Debug\OperateCamera.vshost.exe
?????文件?????????490??2016-07-16?19:44??連接電腦攝像頭\bin\Debug\OperateCamera.vshost.exe.manifest
?????目錄???????????0??2016-12-14?23:04??連接電腦攝像頭\bin\Debug\PersonImg\
?????文件??????603135??2016-12-14?23:04??連接電腦攝像頭\bin\Debug\PersonImg\xiaosy.jpg
?????目錄???????????0??2016-12-14?23:08??連接電腦攝像頭\bin\Release\
?????目錄???????????0??2014-02-16?20:30??連接電腦攝像頭\lib\
............此處省略20個文件信息
- 上一篇:C# 30種圖像動畫特效算法C#多線程版
- 下一篇:C#高仿QQ截圖
評論
共有 條評論