traincascade stoops without any error

asked 2016-05-12 11:09:37 -0500

floyd gravatar image

i'm trying to do a haartraining using the following command:

opencv_traincascade -data xml -vec vec.vec -bg negext3000.txt -numPos 500 -numNeg 3000 -precalcValBufSize 1024 -precalcIdxBufSize 2048 -featureType LBP -w 48 -h 48

but always it crashes and i have to break it manually or it is runs endless and nothing more is happen.

PARAMETERS:
cascadeDirName: xml
vecFileName: vec.vec
bgFileName: negext3000.txt
numPos: 500
numNeg: 3000
numStages: 20
precalcValBufSize[Mb] : 1024
precalcIdxBufSize[Mb] : 2048
acceptanceRatioBreakValue : -1
stageType: BOOST
featureType: LBP
sampleWidth: 48
sampleHeight: 48
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxDepth: 1
maxWeakCount: 100

===== TRAINING 0-stage =====
<BEGIN
POS count : consumed   500 : 500
NEG count : acceptanceRatio    3000 : 1
^C

I have tried so much:

  • various values for -w -h
  • different background images and sizes
  • different num of stages
  • different vec-files (with background, without background, with distortion)
  • different num values for the vec-files

i use a OS X 10.7.5 and open cv 3.1.0 so what can i try to get it running on OSX? should i switch to open cv 2.4.12?

edit retag flag offensive close merge delete