Ask Your Question

ragnarok12's profile - activity

2017-08-29 16:59:43 -0600 received badge  Teacher (source)
2015-03-16 21:16:53 -0600 received badge  Editor (source)
2015-03-16 14:38:50 -0600 received badge  Necromancer (source)
2015-03-16 14:17:09 -0600 answered a question Convert new format haarcasccade xml file to old format

Hi, if you run "opencv_traincascade" with the "-baseFormatSave" flag, it will save it in the old format. To save it in the new format, just leave that flag out.

http://docs.opencv.org/doc/user_guide...

===== Example export to old format =====

opencv_traincascade -data classifier -vec samples.vec -bg negatives.txt\ -numStages 20 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 1000\ -numNeg 600 -w 80 -h 40 -mode ALL -precalcValBufSize 1024\ -precalcIdxBufSize 1024 -baseFormatSave

edit: this only works for HAAR feature detection