I am running opencv 2.4.8
inside a conda
environment. I am able to train a car detector using
opencv_traincascade -data data -vec cars.vec -bg bg.txt -numPos 500 -numNeg 500 -numStages 2 -w 48 -h 24
However, I can not check the performance using
opencv_performance -data data -info cars.txt
I receive a parsing error:
OpenCV Error: Parsing error (data(0):
Valid XML should start with '<?xml ...?>') in icvXMLParse,
file /Users/jhelmus/anaconda/conda-bld/work/opencv-2.4.8/modules/core/src/persistence.cpp, line 2252
libc++abi.dylib:terminating with uncaught exception of type cv::
Exception: /Users/jhelmus/anaconda/conda-bld/work/opencv-2.4.8/modules/core/src/persistence.cpp:2252:
error: (-212) data(0): Valid XML should start with '<?xml ...?>' in function icvXMLParse
I have checked the .xml files and they are appropriately formatted with
<?xml version="1.0"?>
as the first line.
What is causing this error?