I am implementing Viola-Jones face detection algorithm and bit confused about haar-feature threshold. I am calculating the threshold of haar-feature using follow. steps:
a) Calculate the haar-feature value in all positive(face) images respective to the same position. b) Get all the feature values that lie in between minimum feature value and average feature value to get list, MinToAvg = [] c) For each value in MinToAvg classify data (Positive and Negative) and get Number of pos. images(Pos.) it classify as face and number of false positive (FP). d) Feature Value is consider as a threshold for particular feature for which I get max(Pos-FP).
For each round of boosting the threshold for the Haar-feature remain same on the contrary, threshold of Haar-feature as discussed in Viola-Jones paper change with every round of boosting.
My Question is: 1) Am I doing right way for calculation of Haar-feature threshold? 2) For each round of boosting the threshold need to be change?
I am using Python.
Thanks!