Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You have wrong parameters try something like this:

-data C:\MyProject\data -vec C:\MyProject\Vector.vec -bg C:\MyProject\Neg.txt -numPos 500 -numNeg 2000 -numStages 14 -precalcValBufSize 50 -precalcIdxBufSize 256 -featureType LBP -w 30 -h 26 -minHitRate 0.998 -maxFalseAlarmRate 0.5

Probably in -data you have specified a file instead of folder. See also opencv doc of train_cascade, you have there all the parameters and check in this forum fro more understanding on their meaning. Good luck!

You have wrong parameters try something like this:

-data C:\MyProject\data -vec C:\MyProject\Vector.vec -bg C:\MyProject\Neg.txt -numPos 500 -numNeg 2000 -numStages 14 -precalcValBufSize 50 -precalcIdxBufSize 256 -featureType LBP -w 30 -h 26 -minHitRate 0.998 -maxFalseAlarmRate 0.5

Probably in -data you have specified a file instead of folder. See also opencv doc of train_cascade, you have there all the parameters and check in this forum fro to learn more understanding on their meaning. the parameters,there are many questions on this topic. Good luck!