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

조회 수: 9 (최근 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