我想实现在本教程级联人脸检测C++ 3.0 opencv的
我使用的OpenCV 3.0在Ubuntu 14.04中提到的人脸检测。
我从这里
https://github.com/opencv/opencv/tree/master/data/haarcascades
downloaed级联的xml文件当我编译它给了我这个错误消息的代码:
OpenCV Error: Parsing error (/...../haarcascade_frontalcatface.xml(5): Valid XML should start with '<?xml ...?>') in icvXMLParse, file /home/taleb/opencv3/opencv/modules/core/src/persistence.cpp, line 2220
terminate called after throwing an instance of 'cv::Exception'
what(): /home/taleb/opencv3/opencv/modules/core/src/persistence.cpp:2220: error: (-212) /home/taleb/pythonproject/test1/haarcascade_frontalcatface.xml(5): Valid XML should start with '<?xml ...?>' in function icvXMLParse
什么建议吗?
了哪些文件haarcascade_frontalcatface.xml?它有效的XML? –