Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

An error when using opencv_traincascade.exe

I run train with the following params: opencv_traincascade.exe -data haarcascade\ -vec samples.vec -bg negatives.txt -numStages 20 -precalcValBufSize 2500 -precalcIdxBufSize 4000 -w 20 -h 20 -numPos 8000 -numNeg 3000 -minHitRate 0.9999 -maxFalseAlarmRate 0.5 -maxDepth 4 -maxWeakCount 100 -mode ALL

It trains some time(long time) and on Stage 1 N = 7 execute the program with "opencv error: assertion failed (dims <= 2 && data && (unsigned)i0 ....... in unknown function , File C:...\opencv2/core/mat.hpp, line 537 "

Why it goes in this way?