开发者

Training sets for AdaBoost algorithm

开发者 https://www.devze.com 2022-12-29 15:05 出处:网络
How do you find the negative and positive training data sets of Haar features for the AdaBoost algorithm? So say you have a certain type of blob that you want to locate in an image and there are sever

How do you find the negative and positive training data sets of Haar features for the AdaBoost algorithm? So say you have a certain type of blob that you want to locate in an image and there are several of them in your entire array - how do you go about training it? I'd appreciate开发者_运维百科 a nontechnical explanation as much as possible. I'm new to this. Thanks.


First, AdaBoost does not necessarily have anything to do with Haar features. AdaBoost is a learning algorithm that combines weak learners to form a strong learner. Haar features are just a type of data on which an AdaBoost algorithm can learn.

Second, the best way to get them is to prearrange your data. So, if you want to do facial recognition a la Viola and Jones, you'll want to mark the faces in your images in a mask/overlay image. When you're training, you select samples from the image, as well as whether the sample you select is positive or negative. That positivity/negativity comes from your previous marking of the face (or whatever) in the image.

You'll have to make the actual implementation yourself, but you can use existing projects to either guide you, or you can modify their projects.

0

精彩评论

暂无评论...
验证码 换一张
取 消