我正在尝试实现教程中提到的人脸检测
我在 Ubuntu 14.04 上使用 OpenCV 3.0。
我从这里下载了级联 xml 文件
https://github.com/opencv/opencv/tree/master/data/haarcascades
当我编译代码时,它给了我这个错误消息:
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
有什么建议吗?