Pergunta

I'm using opencv_haartrainaing to train my cascade classifier, and i've a folder containing sub-folders with text files instead of the .xml file as shown here....

enter image description here

How can i get the final .xml file?.

Foi útil?

Solução

I found it : in the command prompt cmd use the following line

convert_cascade --size="20x20" haarcascade haarcascade.xml

where

convert_cascade --size="<sample_width>x<sampe_height>" <haartraining_ouput_dir><ouput_file>

convert_cascade is a ".c" file in..\opencv\samples\cdirectory, i compiled it in new project to get 'convert_cascade.exe.

Reference: Tutorial: OpenCV haartraining

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top