当我尝试在 C# 中使用Emgu从avi 文件中捕获视频时,我得到了空引用异常。
捕获捕获 = 新捕获(“somepath.avi”)
我的操作系统上安装了 K-Lite 编解码器。这是堆栈跟踪:
> at Emgu.CV.Capture..ctor(String fileName)
>
> at HelloWorld.Program.Main() in D:\5th year stuff\1st Semester\Computer
> Vision\libemgucv-2.1.0.793-win64\Emgu.CV.Example\HelloWorld\Program.cs:line
> 30
>
> at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
>
> at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
>
> at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
>
> at System.Threading.ThreadHelper.ThreadStart()