The type initializer for 'Emgu.CV.CvInvoke' threw an exception

前端 未结 11 2311
轮回少年
轮回少年 2020-11-29 10:17

I\'m getting this error

The type initializer for \'Emgu.CV.CvInvoke\' threw an exception.

when I try to use Emgu CV. I\'ve tried

11条回答
  •  悲&欢浪女
    2020-11-29 10:56

    I had the same problem. My inner exception was "Unable to load DLL 'opencv_core290'".

    You need to copy x86 and x64 folders from "yourEmguFolder/bin" to your project's output(bin) directory. Then build project again and run.

    According to emgu wiki

提交回复
热议问题