I'm training a haar cascade using opencv_trainscascade. Its running fine, but I'd like to combine the various xml files generated from each stage into a usable output. Using the ./convert_cascade --size="XxX" output.xml is giving me an error. I know that that worked with opencv_haartraining fine to generate an intermediate result, but is there a way to do the same for the newer version?
OpenCV Error: Parsing error (classifier(0): Valid XML should start with '<?xml ...?>') in icvXMLParse, file /tmp/opencv-qGZ4sE/opencv-2.4.9/modules/core/src/persistence.cpp, line 2252
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /tmp/opencv-qGZ4sE/opencv-2.4.9/modules/core/src/persistence.cpp:2252: error: (-212) classifier(0): Valid XML should start with '<?xml ...?>' in function icvXMLParse
Abort trap: 6
All the xml files in the directory seem fine.