视频处理--问题:Emgu 在windows server 2008系统使用时报错

一 错误说明

Emgu 在windows server 2008系统使用时报如下错误:

System.TypeInitializationException: The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception. —> System.DllNotFoundException: Unable to load DLL ‘cvextern’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)\r\n at Emgu.CV.CvInvoke…cctor()
— End of inner exception stack trace —
at Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IplDepth depth, Int32 channels)
at Emgu.CV.Image2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) at Emgu.CV.Image2.set_Bitmap(Bitmap value)
at VerifyID.Managers.ImageTreatmentsManager.ExtractDocumentFromImage(Bitmap bitmap)
at VerifyID.VerifyWorker.ExecuteOCR(BigIdRequest request, BigIdEvent bigIdEvent)

注意点

我在 x86 和 x64 文件夹下有下面库文件
concrt140.dll* liblept172.dll* msvcp140.dll* vcruntime140.dll*
cvextern.dll* libtesseract304.dll* opencv_ffmpeg320.dll*

二 解决方法

安装相应系统的 Desktop Experience Overview

window server 2008的Desktop Experience Overview下载路径:

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc772567(v%3Dws.10)

三 方法出处:

https://github.com/emgucv/emgucv/issues/58

猜你喜欢

转载自blog.csdn.net/XHW___001/article/details/84960357