문제

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?.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top