Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Finally done! Just notice that the path for negative examples should be relative to the current directory! I mean if my cascade_trainer.exe is in the G:\ML directory and my negative examples description file is in G:\ML\Negative\NegSamples.txt your entries should be in the this form:
my G: directory is:

G:
Positives dir
Negative dir
opencv_traincascaded exe

then my description file should be in this format:

\\computer 001.jpg

my command for the cascade is:

opencv_traincascaded.exe -data CassCade -vec Positive\ResistorP1.vec -bg Negative\NegSamples.txt -numPos 150 -numNeg 150 -numStage 30 -featureType LBP -precalcValBufSize 1024 -precalcIdxBufSize 1024