我正在使用 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/