チュートリアルに記載されている顔検出を実装しようとしています
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
なにか提案を?