Training stop at 8-th stage

asked 2014-06-11 09:20:34 -0500

Borneq gravatar image

I have 10 positive and 10 negative images.

d:\opencv\build\x86\vc10\bin\opencv_traincascade.exe -data dir -vec pos.vec -bg negative\neg.txt -numPos 10 -numNeg 10 -w 40 -h 40

Stages 0-7 are fast but stop at 8-th state; if I add "-numStages 8" is OK - create cascade.xml, but if should be only 8 stages?

edit retag flag offensive close merge delete

Comments

what is the error message you're getting?

Witek gravatar imageWitek ( 2014-06-11 14:19:09 -0500 )edit

No messages, process stop

Borneq gravatar imageBorneq ( 2014-06-11 14:22:39 -0500 )edit

Did you use a batch file to execute this command or typed it directly in the console (cmd.exe)?

Witek gravatar imageWitek ( 2014-06-11 16:08:34 -0500 )edit

I create batch and call it from console

Borneq gravatar imageBorneq ( 2014-06-11 16:46:28 -0500 )edit

So what is the last message you see when the processing is over?

Witek gravatar imageWitek ( 2014-06-12 01:57:32 -0500 )edit

Pos count consumed 75 : 75

Borneq gravatar imageBorneq ( 2014-06-12 07:10:43 -0500 )edit

If so, I don't know. Try using more positive and negative samples though.

Witek gravatar imageWitek ( 2014-06-13 02:14:32 -0500 )edit