Can the xml files generated by trainCasca​deObjectDe​tector be used in OpenCV 3.1?

1 view (last 30 days)
I've trained several object detectors in MATLAB using trainCascadeObjectDetector and I would like to know if there is a way to use the xml files generated by that function to detect objects with OpenCV 3.x using c++. Inside of the xml files generated by MATLAB, there is a comment saying that the files are compatible with OpenCV 2.4, but I would like to know if I could use them with newer versions of OpenCV.

Answers (1)

Sonam Gupta
Sonam Gupta on 9 Mar 2017
The function trainCascadeObjectDetector() in MATLAB is designed before openCV 3.1 is released. As of now the xml files generated by it are compatible only with OpenCV 2.4 and not the newer versions of OpenCV.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!