'Emgu.CV.CvInvoke'的类型初始值设定项引发了异常。同时给出硬编码文件的路径

时间:2019-07-17 12:21:43

标签: c# emgucv face-detection

页面加载时,我有以下代码:

haar = new HaarCascade("haarcascade_frontalface_alt_tree.xml");

我将“ haarcascade_frontalface_alt_tree.xml”复制到了bin \ debug文件夹中。 但我收到以下异常:

An unhandled exception of type 'System.TypeInitializationException' occurred in Emgu.CV.dll Additional information: The type initializer for 'Emgu.CV.CvInvoke' threw an exception.

请帮助。

0 个答案:

没有答案