Hi, I'm trying to create my own Haar-cascade file but when executing the command, I only get to see the following in the console window:
PARAMETERS: cascadeDirName: C:\Users\narato\Desktop\OpenCv\BirdHaar vecFileName: C:\Users\narato\Desktop\OpenCv\birds24x24.vec bgFileName: C:\Users\narato\Desktop\OpenCv\negative.txt numPos: 4900 numNeg: 2800 numStages: 25 precalcValBufSize[Mb] : 1024 precalcIdxBufSize[Mb] : 1024 acceptanceRatioBreakValue : -1 stageType: BOOST featureType: HAAR sampleWidth: 24 sampleHeight: 24 boostType: GAB minHitRate: 0.9 maxFalseAlarmRate: 0.5 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100
I have made a .vec file with 5980 positive images (size 24x24). I have a folder with 3270 negative images in it. They are different sizes, the smallest being 80x80 and the biggest 292x80 , is this ok? All of these negative images are referenced in the negative.txt file.
This is the command I try to run: opencv_traincascade.exe -data C:\Users\narato\Desktop\OpenCv\BirdHaar -vec C:\Users\narato\Desktop\OpenCv\birds24x24.vec -bg C:\Users\narato\Desktop\OpenCv\negative.txt -mem 500 -numPos 4900 -numNeg 2800 -numStages 25 -w 24 -h 24 -minHitRate 0.9 -maxFalseAlarmRate 0.5 -mode All
As said, this crashes right after the parameters are shown in the console window and I can't seem to find what's causing it. Any help is greatly appreciated!