I need advice about params of opencv_traincascade for my training set

asked 2013-10-11 01:52:40 -0600

Infinite Life gravatar image

updated 2013-10-11 08:28:50 -0600

I have dataset: 340 images size of 440x200, on every image is objects of size between 9x10 px and 25x15 px. And I have a negative set about 570 images size of 440x200. I run training with these params: -numPos 250 -numNeg 22000 -w 10 -h 10 -numStages 24 -minHitRate 0.995 -maxFalseAlarmRate -0.5 maxDepth 20 -maxWeakCount 600 -mode ALL

I created my set from previosly marked up images.

I also tried -numPos 320 and 300. In first time it end with error "Unsufficient count of positive samples" on 4 stage(-numPos 320). I rerun training on same cascade with -numPos 300. It gives me another one stage and fall with same error. In third time I choose -numPos 250 and it fall on 2 Stage and FalseAlarmRate in 1 Stage was 0! But in second stage 0.028.

So I will be glad to hear any advice about that, but my question is: It is impossible to train cascade with these small set of positives samples? But it give me very small FalseAlarmRate even on first stages. So it can be a good classifier?

It is no face detection problem.

edit retag flag offensive close merge delete

Comments

did the actual arg for -maxFalseAlarm got lost in translation, or didn't you supply any ?

berak gravatar imageberak ( 2013-10-11 07:34:24 -0600 )edit

Edit -maxFalseAlarmRate, mistake of translation)

Infinite Life gravatar imageInfinite Life ( 2013-10-11 07:54:30 -0600 )edit