简体   繁体   中英

Haar training with small samples

Please can anyone help with where I can get Haar training files that use small samples such as 5? I have downloaded a couple but one is giving me error messages while the second require 1000 samples.

Thank you very much

Little samples is not how it is designed to work with. Almost all the algorithms that lets us do classification need a large amount of training samples.

It depends on what you want to detect. If you want to detect a logo and you have a clean image of a logo, you can create many training samples out of it by adding noise, changing contrast and brightness, rotating, distorting, etc. OpenCV's Haar training module supports this, so it won't be hard. This is called data augmentation. But if you want to detect faces, data augmentation alone won't be enough. Creating a rule-based system by observing the few samples that you have works best for this situation, if what you want to detect is a natural object. I can add additional links to this answer, pointing to sample code, if you can provide more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM