c# - 使用 haarcascade_profileface.xml 时出错

标签 c# opencv emgucv

我正在使用 Visual Studio Express 2013 for Windows Desktop 用 C# 编写程序。我想检测侧面的面孔,因此只有一只眼睛可见。我使用 haarcascade_profileface.xml 进行检测。每次我尝试调试代码时都会收到此错误消息:

Error of type "Emgu.CV.Util.CvException" has occurred in Emgu.CV.dll. Additional Information: OpenCV: The node does not represent a user object (unknown type?)

我使用与 haarcascade_frontalface_default.xml 相同的代码,并且使用此 xml 可以正常工作。

我真的需要帮助。请帮我。 谢谢,B

最佳答案

emgu 使用 opencv 已弃用的 c-api,只能读取旧格式的级联文件(使用 opencv_haartraining 构建)。您不能将该级联文件与 emgu 一起使用。责怪他们的开发者生活在岩石下。

关于c# - 使用 haarcascade_profileface.xml 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27101892/

相关文章:

c# - EmguCV 3.0 中的 Emgu.CV.CvEnum 中不存在类型或命名空间 TM_TYPE

c# - EmguCV 捕获 rtsp ip 摄像头流 ffmpeg

c# - 使用 EMGU CV 跟踪 IR Led?

c# - Visual Studio 2019 - 构建花费的时间比他们应该的要长得多

c# - 为 Asp.net 中的项目推荐一个在线存储库和项目管理工具

c# - 最终用户如何选择 Dock、Anchor、Location、

c++ - createButton OpenCV 新 Qt 功能

c# - 将 StructureMap 与单元测试结合使用

python - 如何反转 warpPerspective()

python - 如何在python中找到拐点?