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!
2 | No.2 Revision |
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!