OpenCV Error: Assertion failed
Hi,
I tried to create my first Haarcascade, I followed along a tutorial but now I get this error when I try to train the cascade:
C:\HaarCascade>C:\HaarCascade\Haartraining\build\x64\vc10\bin\opencv_traincascade.exe -data classiefier -vec classifier-vec samples.vec -bg NegativesNew.txt -numStages 10 -miniHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 7 -numNeg 890 -w 60 -h 35 -mode ALL -precalcValBufSize 256 -precalcIdxBufSize 256
Training parameters are loaded from the parameter file in data folder!
Please empty the data folder if you want to use your own set of parameters.
PARAMETERS:
cascadeDirName: classiefier
classifier
vecFileName: samples.vec
bgFileName: NegativesNew.txt
numPos: 7
numNeg: 890
numStages: 10
precalcValBufSize[Mb] : 256
precalcIdxBufSize[Mb] : 256
stageType: BOOST
featureType: HAAR
sampleWidth: 60
sampleHeight: 35
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxDepth: 1
maxWeakCount: 100
mode: ALL
===== TRAINING 0-stage =====
<begin opencv="" error:="" assertion="" failed="" (_img.rows="" *="" _img.cols="=" vecsize)="" in="" cvcascadeimagereader::posreader::get,="" file="" ........\opencv\apps\traincascade\imagestorage.cpp,="" line="" 157<="" p="">
I start training the cascade by this command:
C:\HaarCascade\Haartraining\build\x64\vc10\bin\opencv_traincascade.exe -data classiefier -vec classifier-vec samples.vec -bg NegativesNew.txt -numStages 10 -miniHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 7 -numNeg 890 -w 60 -h 35 -mode ALL -precalcValBufSize 256 -precalcIdxBufSize 256
Anyone knows why I get this error
Thanks
Paul