我想實現在本教程級聯人臉檢測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? –