我想像在 opencv 提供的示例中一样使用 opencv
当我在示例中(在winform中)运行它时,它工作正常,但在我的网站上我得到了这个错误:
The type initializer for 'Emgu.CV.CvInvoke' threw an exception.
和内部异常:
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
与堆栈:
at Emgu.CV.CvInvoke.cvLoadImage(String filename, LOAD_IMAGE_TYPE loadType)
at Emgu.CV.Image`2.LoadImageUsingOpenCV(FileInfo file)
at Emgu.CV.Image`2..ctor(String fileName)
我正在使用 emgucv windows x64 2.40 版本