【问题标题】:EMGU CV ExceptionEMGU 简历异常
【发布时间】: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


    【解决方案1】:

    我使用的是 dll EMGU.CV 和 EMGU.CV.Util。来自以前版本的 EMGU cv。在 3.1 版中,这些 dll 嵌入在 EMGU.CV.World 中。我通过删除对旧 dll 的引用并用新的替换它来解决这个问题。

    查看版本 3.1 的发行说明以了解更多详细信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-04
      • 2014-05-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多