I’m trying to implement Viola-Jones algorithm. And I refer opencv docs, I found difference between the original algorithm and opencv.
haar features = rect1 -rect2;
haar features = w1*rect1 – w2*rect2;
I have already known Adaboost algorithm. But I haven’t find the way of defining weight(w1,w2). Could anyone tell me that way or a good reference?