Ask Your Question

Revision history [back]

opencv_traincascade

I have this error in opencv_traincascade.exe

OpenCV Error: Bad argument (Can not get new positive sample. The most possible r eason is insufficient count of samples in given vec-file. ) in CvCascadeImageReader::PosReader::get, file C:\builds\2_4_PackSlave-win32-vc 11-shared\opencv\apps\traincascade\imagestorage.cpp, line 162

I pass following parameters :

opencv_traincascade.exe -data data/cascade -vec data/vector.vec -bg negative/infofile.txt -numPos 2000 -numNeg 4000 -numStages 30 -w 30 -h 30 -featureType LBP -minHitRate 0.9 -maxFalseAlarm 0.005 -mode ALL

my vector.vec contain 2000 samples.

any idea ? Thanks guys !!

click to hide/show revision 2
retagged

updated 2014-02-22 06:10:08 -0600

berak gravatar image

opencv_traincascade

I have this error in opencv_traincascade.exe

OpenCV Error: Bad argument (Can not get new positive sample. The most possible r eason is insufficient count of samples in given vec-file. ) in CvCascadeImageReader::PosReader::get, file C:\builds\2_4_PackSlave-win32-vc 11-shared\opencv\apps\traincascade\imagestorage.cpp, line 162

I pass following parameters :

opencv_traincascade.exe -data data/cascade -vec data/vector.vec -bg negative/infofile.txt -numPos 2000 -numNeg 4000 -numStages 30 -w 30 -h 30 -featureType LBP -minHitRate 0.9 -maxFalseAlarm 0.005 -mode ALL

my vector.vec contain 2000 samples.

any idea ? Thanks guys !!