在好例子网,分享、交流、成长!
您当前所在位置:首页C# 开发实例C#图形和图像处理 → C#:调用电脑本机摄像头,读取视频文件

C#:调用电脑本机摄像头,读取视频文件

C#图形和图像处理

下载此实例
  • 开发语言:C#
  • 实例大小:162.38M
  • 下载次数:44
  • 浏览次数:272
  • 发布时间:2022-09-09
  • 实例类别:C#图形和图像处理
  • 发 布 人:dalong10
  • 文件格式:.zip
  • 所需积分:2
 相关标签: opencv

实例介绍

【实例简介】C#:调用电脑本机摄像头,读取视频文件

#一、调用电脑本机摄像头
- 1、调用电脑本机摄像头,读取视频文件
- 2、循环顺序读取视频中的每一帧
- 3、如何退出循环。

【实例截图】

from clipboard

【核心代码】

.
├── Ky_CvCap
│   ├── Ky_CvCap
│   │   ├── App.config
│   │   ├── Form1.Designer.cs
│   │   ├── Form1.cs
│   │   ├── Form1.resx
│   │   ├── Ky_CvCap.csproj
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   ├── AssemblyInfo.cs
│   │   │   ├── Resources.Designer.cs
│   │   │   ├── Resources.resx
│   │   │   ├── Settings.Designer.cs
│   │   │   └── Settings.settings
│   │   ├── bin
│   │   │   └── Debug
│   │   │       ├── Ky_CvCap.exe
│   │   │       ├── Ky_CvCap.exe.config
│   │   │       ├── Ky_CvCap.pdb
│   │   │       ├── Microsoft.Win32.Primitives.dll
│   │   │       ├── OpenCvSharp.Extensions.dll
│   │   │       ├── OpenCvSharp.Extensions.xml
│   │   │       ├── OpenCvSharp.dll
│   │   │       ├── OpenCvSharp.xml
│   │   │       ├── System.AppContext.dll
│   │   │       ├── System.Buffers.dll
│   │   │       ├── System.Buffers.xml
│   │   │       ├── System.Collections.Concurrent.dll
│   │   │       ├── System.Collections.NonGeneric.dll
│   │   │       ├── System.Collections.Specialized.dll
│   │   │       ├── System.Collections.dll
│   │   │       ├── System.ComponentModel.EventBasedAsync.dll
│   │   │       ├── System.ComponentModel.Primitives.dll
│   │   │       ├── System.ComponentModel.TypeConverter.dll
│   │   │       ├── System.ComponentModel.dll
│   │   │       ├── System.Console.dll
│   │   │       ├── System.Data.Common.dll
│   │   │       ├── System.Diagnostics.Contracts.dll
│   │   │       ├── System.Diagnostics.Debug.dll
│   │   │       ├── System.Diagnostics.FileVersionInfo.dll
│   │   │       ├── System.Diagnostics.Process.dll
│   │   │       ├── System.Diagnostics.StackTrace.dll
│   │   │       ├── System.Diagnostics.TextWriterTraceListener.dll
│   │   │       ├── System.Diagnostics.Tools.dll
│   │   │       ├── System.Diagnostics.TraceSource.dll
│   │   │       ├── System.Diagnostics.Tracing.dll
│   │   │       ├── System.Drawing.Common.dll
│   │   │       ├── System.Drawing.Primitives.dll
│   │   │       ├── System.Dynamic.Runtime.dll
│   │   │       ├── System.Globalization.Calendars.dll
│   │   │       ├── System.Globalization.Extensions.dll
│   │   │       ├── System.Globalization.dll
│   │   │       ├── System.IO.Compression.ZipFile.dll
│   │   │       ├── System.IO.Compression.dll
│   │   │       ├── System.IO.FileSystem.DriveInfo.dll
│   │   │       ├── System.IO.FileSystem.Primitives.dll
│   │   │       ├── System.IO.FileSystem.Watcher.dll
│   │   │       ├── System.IO.FileSystem.dll
│   │   │       ├── System.IO.IsolatedStorage.dll
│   │   │       ├── System.IO.MemoryMappedFiles.dll
│   │   │       ├── System.IO.Pipes.dll
│   │   │       ├── System.IO.UnmanagedMemoryStream.dll
│   │   │       ├── System.IO.dll
│   │   │       ├── System.Linq.Expressions.dll
│   │   │       ├── System.Linq.Parallel.dll
│   │   │       ├── System.Linq.Queryable.dll
│   │   │       ├── System.Linq.dll
│   │   │       ├── System.Memory.dll
│   │   │       ├── System.Memory.xml
│   │   │       ├── System.Net.Http.dll
│   │   │       ├── System.Net.NameResolution.dll
│   │   │       ├── System.Net.NetworkInformation.dll
│   │   │       ├── System.Net.Ping.dll
│   │   │       ├── System.Net.Primitives.dll
│   │   │       ├── System.Net.Requests.dll
│   │   │       ├── System.Net.Security.dll
│   │   │       ├── System.Net.Sockets.dll
│   │   │       ├── System.Net.WebHeaderCollection.dll
│   │   │       ├── System.Net.WebSockets.Client.dll
│   │   │       ├── System.Net.WebSockets.dll
│   │   │       ├── System.Numerics.Vectors.dll
│   │   │       ├── System.Numerics.Vectors.xml
│   │   │       ├── System.ObjectModel.dll
│   │   │       ├── System.Reflection.Extensions.dll
│   │   │       ├── System.Reflection.Primitives.dll
│   │   │       ├── System.Reflection.dll
│   │   │       ├── System.Resources.Reader.dll
│   │   │       ├── System.Resources.ResourceManager.dll
│   │   │       ├── System.Resources.Writer.dll
│   │   │       ├── System.Runtime.CompilerServices.Unsafe.dll
│   │   │       ├── System.Runtime.CompilerServices.Unsafe.xml
│   │   │       ├── System.Runtime.CompilerServices.VisualC.dll
│   │   │       ├── System.Runtime.Extensions.dll
│   │   │       ├── System.Runtime.Handles.dll
│   │   │       ├── System.Runtime.InteropServices.RuntimeInformation.dll
│   │   │       ├── System.Runtime.InteropServices.dll
│   │   │       ├── System.Runtime.Numerics.dll
│   │   │       ├── System.Runtime.Serialization.Formatters.dll
│   │   │       ├── System.Runtime.Serialization.Json.dll
│   │   │       ├── System.Runtime.Serialization.Primitives.dll
│   │   │       ├── System.Runtime.Serialization.Xml.dll
│   │   │       ├── System.Runtime.dll
│   │   │       ├── System.Security.Claims.dll
│   │   │       ├── System.Security.Cryptography.Algorithms.dll
│   │   │       ├── System.Security.Cryptography.Csp.dll
│   │   │       ├── System.Security.Cryptography.Encoding.dll
│   │   │       ├── System.Security.Cryptography.Primitives.dll
│   │   │       ├── System.Security.Cryptography.X509Certificates.dll
│   │   │       ├── System.Security.Principal.dll
│   │   │       ├── System.Security.SecureString.dll
│   │   │       ├── System.Text.Encoding.Extensions.dll
│   │   │       ├── System.Text.Encoding.dll
│   │   │       ├── System.Text.RegularExpressions.dll
│   │   │       ├── System.Threading.Overlapped.dll
│   │   │       ├── System.Threading.Tasks.Parallel.dll
│   │   │       ├── System.Threading.Tasks.dll
│   │   │       ├── System.Threading.Thread.dll
│   │   │       ├── System.Threading.ThreadPool.dll
│   │   │       ├── System.Threading.Timer.dll
│   │   │       ├── System.Threading.dll
│   │   │       ├── System.ValueTuple.dll
│   │   │       ├── System.Xml.ReaderWriter.dll
│   │   │       ├── System.Xml.XDocument.dll
│   │   │       ├── System.Xml.XPath.XDocument.dll
│   │   │       ├── System.Xml.XPath.dll
│   │   │       ├── System.Xml.XmlDocument.dll
│   │   │       ├── System.Xml.XmlSerializer.dll
│   │   │       ├── dll
│   │   │       │   ├── x64
│   │   │       │   │   ├── OpenCvSharpExtern.dll
│   │   │       │   │   └── opencv_videoio_ffmpeg455_64.dll
│   │   │       │   └── x86
│   │   │       │       ├── OpenCvSharpExtern.dll
│   │   │       │       └── opencv_videoio_ffmpeg455.dll
│   │   │       └── netstandard.dll
│   │   ├── obj
│   │   │   └── Debug
│   │   │       ├── DesignTimeResolveAssemblyReferences.cache
│   │   │       ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   │       ├── Ky_CvCap.Form1.resources
│   │   │       ├── Ky_CvCap.Properties.Resources.resources
│   │   │       ├── Ky_CvCap.csproj.CopyComplete
│   │   │       ├── Ky_CvCap.csproj.CoreCompileInputs.cache
│   │   │       ├── Ky_CvCap.csproj.FileListAbsolute.txt
│   │   │       ├── Ky_CvCap.csproj.GenerateResource.cache
│   │   │       ├── Ky_CvCap.csprojAssemblyReference.cache
│   │   │       ├── Ky_CvCap.exe
│   │   │       ├── Ky_CvCap.exe.config
│   │   │       ├── Ky_CvCap.pdb
│   │   │       └── TempPE
│   │   └── packages.config
│   ├── Ky_CvCap.sln
│   └── packages
│       ├── OpenCvSharp4.4.6.0.20220608
│       │   ├── OpenCvSharp4.4.6.0.20220608.nupkg
│       │   └── lib
│       │       ├── net48
│       │       │   ├── OpenCvSharp.dll
│       │       │   └── OpenCvSharp.xml
│       │       ├── net6.0
│       │       │   ├── OpenCvSharp.dll
│       │       │   └── OpenCvSharp.xml
│       │       ├── netcoreapp3.1
│       │       │   ├── OpenCvSharp.dll
│       │       │   └── OpenCvSharp.xml
│       │       ├── netstandard2.0
│       │       │   ├── OpenCvSharp.dll
│       │       │   └── OpenCvSharp.xml
│       │       └── netstandard2.1
│       │           ├── OpenCvSharp.dll
│       │           └── OpenCvSharp.xml
│       ├── OpenCvSharp4.Extensions.4.6.0.20220608
│       │   ├── OpenCvSharp4.Extensions.4.6.0.20220608.nupkg
│       │   └── lib
│       │       ├── net48
│       │       │   ├── OpenCvSharp.Extensions.dll
│       │       │   └── OpenCvSharp.Extensions.xml
│       │       ├── net6.0
│       │       │   ├── OpenCvSharp.Extensions.dll
│       │       │   └── OpenCvSharp.Extensions.xml
│       │       ├── netcoreapp3.1
│       │       │   ├── OpenCvSharp.Extensions.dll
│       │       │   └── OpenCvSharp.Extensions.xml
│       │       ├── netstandard2.0
│       │       │   ├── OpenCvSharp.Extensions.dll
│       │       │   └── OpenCvSharp.Extensions.xml
│       │       └── netstandard2.1
│       │           ├── OpenCvSharp.Extensions.dll
│       │           └── OpenCvSharp.Extensions.xml
│       ├── OpenCvSharp4.runtime.win.4.6.0.20220608
│       │   ├── OpenCvSharp4.runtime.win.4.6.0.20220608.nupkg
│       │   ├── build
│       │   │   ├── net48
│       │   │   │   └── OpenCvSharp4.runtime.win.props
│       │   │   ├── net5.0
│       │   │   │   └── OpenCvSharp4.runtime.win.props
│       │   │   ├── netcoreapp
│       │   │   │   └── OpenCvSharp4.runtime.win.props
│       │   │   └── netstandard
│       │   │       └── OpenCvSharp4.runtime.win.props
│       │   └── runtimes
│       │       ├── win-x64
│       │       │   └── native
│       │       │       ├── OpenCvSharpExtern.dll
│       │       │       └── opencv_videoio_ffmpeg460_64.dll
│       │       └── win-x86
│       │           └── native
│       │               ├── OpenCvSharpExtern.dll
│       │               └── opencv_videoio_ffmpeg460.dll
│       ├── System.Buffers.4.5.1
│       │   ├── LICENSE.TXT
│       │   ├── System.Buffers.4.5.1.nupkg
│       │   ├── THIRD-PARTY-NOTICES.TXT
│       │   ├── lib
│       │   │   ├── net461
│       │   │   │   ├── System.Buffers.dll
│       │   │   │   └── System.Buffers.xml
│       │   │   ├── netcoreapp2.0
│       │   │   │   └── _._
│       │   │   ├── netstandard1.1
│       │   │   │   ├── System.Buffers.dll
│       │   │   │   └── System.Buffers.xml
│       │   │   ├── netstandard2.0
│       │   │   │   ├── System.Buffers.dll
│       │   │   │   └── System.Buffers.xml
│       │   │   └── uap10.0.16299
│       │   │       └── _._
│       │   ├── ref
│       │   │   ├── net45
│       │   │   │   ├── System.Buffers.dll
│       │   │   │   └── System.Buffers.xml
│       │   │   ├── netcoreapp2.0
│       │   │   │   └── _._
│       │   │   ├── netstandard1.1
│       │   │   │   ├── System.Buffers.dll
│       │   │   │   └── System.Buffers.xml
│       │   │   ├── netstandard2.0
│       │   │   │   ├── System.Buffers.dll
│       │   │   │   └── System.Buffers.xml
│       │   │   └── uap10.0.16299
│       │   │       └── _._
│       │   ├── useSharedDesignerContext.txt
│       │   └── version.txt
│       ├── System.Drawing.Common.5.0.3
│       │   ├── Icon.png
│       │   ├── LICENSE.TXT
│       │   ├── System.Drawing.Common.5.0.3.nupkg
│       │   ├── THIRD-PARTY-NOTICES.TXT
│       │   ├── lib
│       │   │   ├── MonoAndroid10
│       │   │   │   └── _._
│       │   │   ├── MonoTouch10
│       │   │   │   └── _._
│       │   │   ├── net461
│       │   │   │   └── System.Drawing.Common.dll
│       │   │   ├── netcoreapp3.0
│       │   │   │   ├── System.Drawing.Common.dll
│       │   │   │   └── System.Drawing.Common.xml
│       │   │   ├── netstandard2.0
│       │   │   │   └── System.Drawing.Common.dll
│       │   │   ├── xamarinios10
│       │   │   │   └── _._
│       │   │   ├── xamarinmac20
│       │   │   │   └── _._
│       │   │   ├── xamarintvos10
│       │   │   │   └── _._
│       │   │   └── xamarinwatchos10
│       │   │       └── _._
│       │   ├── ref
│       │   │   ├── MonoAndroid10
│       │   │   │   └── _._
│       │   │   ├── MonoTouch10
│       │   │   │   └── _._
│       │   │   ├── net461
│       │   │   │   └── System.Drawing.Common.dll
│       │   │   ├── netcoreapp3.0
│       │   │   │   ├── System.Drawing.Common.dll
│       │   │   │   └── System.Drawing.Common.xml
│       │   │   ├── netstandard2.0
│       │   │   │   └── System.Drawing.Common.dll
│       │   │   ├── xamarinios10
│       │   │   │   └── _._
│       │   │   ├── xamarinmac20
│       │   │   │   └── _._
│       │   │   ├── xamarintvos10
│       │   │   │   └── _._
│       │   │   └── xamarinwatchos10
│       │   │       └── _._
│       │   ├── runtimes
│       │   │   ├── unix
│       │   │   │   └── lib
│       │   │   │       ├── netcoreapp2.0
│       │   │   │       │   └── System.Drawing.Common.dll
│       │   │   │       └── netcoreapp3.0
│       │   │   │           ├── System.Drawing.Common.dll
│       │   │   │           └── System.Drawing.Common.xml
│       │   │   └── win
│       │   │       └── lib
│       │   │           ├── netcoreapp2.0
│       │   │           │   └── System.Drawing.Common.dll
│       │   │           └── netcoreapp3.0
│       │   │               ├── System.Drawing.Common.dll
│       │   │               └── System.Drawing.Common.xml
│       │   ├── useSharedDesignerContext.txt
│       │   └── version.txt
│       ├── System.Memory.4.5.4
│       │   ├── LICENSE.TXT
│       │   ├── System.Memory.4.5.4.nupkg
│       │   ├── THIRD-PARTY-NOTICES.TXT
│       │   ├── lib
│       │   │   ├── net461
│       │   │   │   ├── System.Memory.dll
│       │   │   │   └── System.Memory.xml
│       │   │   ├── netcoreapp2.1
│       │   │   │   └── _._
│       │   │   ├── netstandard1.1
│       │   │   │   ├── System.Memory.dll
│       │   │   │   └── System.Memory.xml
│       │   │   └── netstandard2.0
│       │   │       ├── System.Memory.dll
│       │   │       └── System.Memory.xml
│       │   ├── ref
│       │   │   └── netcoreapp2.1
│       │   │       └── _._
│       │   ├── useSharedDesignerContext.txt
│       │   └── version.txt
│       ├── System.Numerics.Vectors.4.5.0
│       │   ├── LICENSE.TXT
│       │   ├── System.Numerics.Vectors.4.5.0.nupkg
│       │   ├── THIRD-PARTY-NOTICES.TXT
│       │   ├── lib
│       │   │   ├── MonoAndroid10
│       │   │   │   └── _._
│       │   │   ├── MonoTouch10
│       │   │   │   └── _._
│       │   │   ├── net46
│       │   │   │   ├── System.Numerics.Vectors.dll
│       │   │   │   └── System.Numerics.Vectors.xml
│       │   │   ├── netcoreapp2.0
│       │   │   │   └── _._
│       │   │   ├── netstandard1.0
│       │   │   │   ├── System.Numerics.Vectors.dll
│       │   │   │   └── System.Numerics.Vectors.xml
│       │   │   ├── netstandard2.0
│       │   │   │   ├── System.Numerics.Vectors.dll
│       │   │   │   └── System.Numerics.Vectors.xml
│       │   │   ├── portable-net45 win8 wp8 wpa81
│       │   │   │   ├── System.Numerics.Vectors.dll
│       │   │   │   └── System.Numerics.Vectors.xml
│       │   │   ├── uap10.0.16299
│       │   │   │   └── _._
│       │   │   ├── xamarinios10
│       │   │   │   └── _._
│       │   │   ├── xamarinmac20
│       │   │   │   └── _._
│       │   │   ├── xamarintvos10
│       │   │   │   └── _._
│       │   │   └── xamarinwatchos10
│       │   │       └── _._
│       │   ├── ref
│       │   │   ├── MonoAndroid10
│       │   │   │   └── _._
│       │   │   ├── MonoTouch10
│       │   │   │   └── _._
│       │   │   ├── net45
│       │   │   │   ├── System.Numerics.Vectors.dll
│       │   │   │   └── System.Numerics.Vectors.xml
│       │   │   ├── net46
│       │   │   │   ├── System.Numerics.Vectors.dll
│       │   │   │   └── System.Numerics.Vectors.xml
│       │   │   ├── netcoreapp2.0
│       │   │   │   └── _._
│       │   │   ├── netstandard1.0
│       │   │   │   ├── System.Numerics.Vectors.dll
│       │   │   │   └── System.Numerics.Vectors.xml
│       │   │   ├── netstandard2.0
│       │   │   │   ├── System.Numerics.Vectors.dll
│       │   │   │   └── System.Numerics.Vectors.xml
│       │   │   ├── uap10.0.16299
│       │   │   │   └── _._
│       │   │   ├── xamarinios10
│       │   │   │   └── _._
│       │   │   ├── xamarinmac20
│       │   │   │   └── _._
│       │   │   ├── xamarintvos10
│       │   │   │   └── _._
│       │   │   └── xamarinwatchos10
│       │   │       └── _._
│       │   ├── useSharedDesignerContext.txt
│       │   └── version.txt
│       └── System.Runtime.CompilerServices.Unsafe.6.0.0
│           ├── Icon.png
│           ├── LICENSE.TXT
│           ├── System.Runtime.CompilerServices.Unsafe.6.0.0.nupkg
│           ├── THIRD-PARTY-NOTICES.TXT
│           ├── buildTransitive
│           │   ├── netcoreapp2.0
│           │   │   └── System.Runtime.CompilerServices.Unsafe.targets
│           │   └── netcoreapp3.1
│           │       └── _._
│           ├── lib
│           │   ├── net461
│           │   │   ├── System.Runtime.CompilerServices.Unsafe.dll
│           │   │   └── System.Runtime.CompilerServices.Unsafe.xml
│           │   ├── net6.0
│           │   │   ├── System.Runtime.CompilerServices.Unsafe.dll
│           │   │   └── System.Runtime.CompilerServices.Unsafe.xml
│           │   ├── netcoreapp3.1
│           │   │   ├── System.Runtime.CompilerServices.Unsafe.dll
│           │   │   └── System.Runtime.CompilerServices.Unsafe.xml
│           │   └── netstandard2.0
│           │       ├── System.Runtime.CompilerServices.Unsafe.dll
│           │       └── System.Runtime.CompilerServices.Unsafe.xml
│           └── useSharedDesignerContext.txt
└── 调用电脑本机摄像头,读取视频文件.zip

124 directories, 291 files



标签: opencv

实例下载地址

C#:调用电脑本机摄像头,读取视频文件

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警