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

1 回表示 (過去 30 日間)
HEVT
HEVT 2017 年 2 月 28 日
回答済み: Sonam Gupta 2017 年 3 月 9 日
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.

回答 (1 件)

Sonam Gupta
Sonam Gupta 2017 年 3 月 9 日
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!

Translated by