【发布时间】:2017-01-25 13:44:03
【问题描述】:
我正在尝试使用 EMGUCV 执行简单的人脸检测。但是当我尝试初始化 CascadeClassifier 对象时,它会抛出异常
Emgu.CV.dll 中出现“System.EntryPointNotFoundException”类型的未处理异常
附加信息:无法在 DLL 'cvextern' 中找到名为 'CvCascadeClassifierCreate' 的入口点。
下面是我的源码
` 私有级联分类器_cascadeClassifier;
_cascadeClassifier = new CascadeClassifier(Application.StartupPath + "/haarcascade_frontalface_default.xml");
using (var imageFrame = _capture.QueryFrame().ToImage<Bgr, Byte>())
{
if (imageFrame != null)
{
var grayframe = imageFrame.Convert<Gray, byte>();
var faces = _cascadeClassifier.DetectMultiScale(grayframe, 1.1, 10, Size.Empty); //the actual face detection happens here
foreach (var face in faces)
{
imageFrame.Draw(face, new Bgr(Color.BurlyWood), 3); //the detected face(s) is highlighted here using a box that is drawn around it/them
}
}
imgCamUser.Image = imageFrame;
}
`
请问我该如何解决这个问题?
【问题讨论】:
标签: c# exception emgucv face-detection