OpenCV Error:Bad argument (Can not Get new Positive sample)

asked 2013-04-28 08:48:05 -0500

I am trying a cascade-training by using AdaBoost based haar-like features . Opencv_traincascade.exe is used . In the environment of Visual C++ Express 2010 + Opencv 2.4.4 , I start training by the follows : image description

The Error happened at the 11 stage ( the last stage for all 12 stages) ,like this
image description

Can someone give me some advice and the reasons ? In addtion , I wonder the ratio between PositiveSamples and NegativeSamples ,and how to give a proper ratio ?Thanks a milion!

edit retag flag offensive close merge delete

Comments

You should use much more positive images, also I suggest you to declare -minHitRate 0.999.

danaro gravatar imagedanaro ( 2016-07-01 13:11:30 -0500 )edit