My Haarcascade classifier uses a vector file of -w=20, -h=20 for training. There are some false negative results when testing. Does increasing -w and -h improve performance of my Haarcascade classifier?

asked 2016-11-04 03:25:48 -0500

m850140 gravatar image

updated 2016-11-04 09:00:44 -0500

My Haarcascade classifier uses a vector file of -w=20, -h=20 for training. There are some false negative results when testing. Does increasing -w and -h improve performance of my Haarcascade classifier? opencv_traincascade -data data -vec positives.vec -bg bg.txt -numPos 3519 -numNeg 1800 -numStages 10 -w 20 -h 20 -minHitRate 0.999 -maxFalseAlarmRate 0.4. This is my command for training. I'm trying to train a hand detector. Please help me!

edit retag flag offensive close merge delete

Comments

Ow please, start by reading up on the topic. The Q&A is filled with information about it. In short, no it will not increase performance... because that is not what the parameters intend to do. Also without info on how your model is made and its parameters, there is no telling how you can improve it. Please update your question accordingly.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-11-04 05:17:19 -0500 )edit

opencv_traincascade -data data -vec positives.vec -bg bg.txt -numPos 3519 -numNeg 1800 -numStages 10 -w 20 -h 20 -minHitRate 0.999 -maxFalseAlarmRate 0.4. This is my command for training. I'm trying to train a hand detector. Please help me!

m850140 gravatar imagem850140 ( 2016-11-04 09:01:29 -0500 )edit

You have way to less negatives compared to positives. Your feature space is probably poorly seperated. Increase the -numNeg parameter first.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-11-07 02:44:31 -0500 )edit