Here is my dir structure:
D:\opencv\....
D:\logo\...
I ran the following powershell scripts:
Get-ChildItem -Path ".\negative" | ForEach-Object -Process { "negative\" + $_.Name } | Out-File -FilePath "negative.txt"
..\opencv\build\x64\vc12\bin\opencv_createsamples.exe -vec "positive.vec" -img ".\positive\grayscale\grayscale-logo.jpg" -num 1000 -maxyangle .53 -maxxangle .53 -maxzangle .53 -w 44 -h 34
..\opencv\build\x64\vc12\bin\opencv_traincascade.exe -data "output" -vec "positive.vec" -bg "negative.txt" -numPos 1000 -numNeg 3019 -numStages 20 -w 44 -h 34
I have 3019 negative images in
D:\logo\negative\
I have a logo at
D:\positive\grayscale\grayscale-logo.jpg
I am getting the following error
PARAMETERS:
cascadeDirName: output
vecFileName: positive.vec
bgFileName: negative.txt
numPos: 2000
numNeg: 1000
numStages: 20
precalcValBufSize[Mb] : 256
precalcIdxBufSize[Mb] : 256
stageType: BOOST
featureType: HAAR
sampleWidth: 44
sampleHeight: 34
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxDepth: 1
maxWeakCount: 100
mode: BASIC
.....
POS count : consumed 1000 : 1000
Train dataset for temp stage can not be filled. Branch training terminated.
Cascade classifier can't be trained. Check the used training parameters.
What might be going on that I am getting that error? I installed OpenCV 2.4.8 on my Windows 8.1 box and used the binaries that were provided.