Opencv learning notes ()-use Haar features to train your classifier (then perform gesture detection)

Source: Internet
Author: User

I have previously introduced a Article on target detection using cascading classifier skip. We found that the Haar features in the library of opencv are only human faces, human organs, and human bodies. Recently, we wanted to perform a human hand detection. We used color features to make it very unreliable, try again with the Haar feature this time. In this case, you need to use the haartraining tool to train your hands. First, I would like to introduce some preparation knowledge. Later, I found that someone has translated the tutorial (or read the original English text in more detail). I also referred to this tutorial. The training process is quite painful and I am exhausted by my beloved PC. Since training data is not my personal wealth, it is inconvenient to upload it. Here we use the gesture classifier (the fist represents letter A in the English sign language) trained by a foreigner as the source of the experiment.

You still have to read the documents 《Robust Real-Time Face DetectionIf you do not want to read the original text, you can check the example. The implementation process of opencv is also on the basis of this article, and is constantly improved later.

I tracked it myself.CodeIt is found that the cascade classifier of opencv is divided into the old version and the new version,All the Haar cascade classifiers are of the old version, and only one of them is of the new version. The training and detection of the old version of the cascade classifier are based on the data structure of the old version.(It makes me very uncomfortable. I really want to be powerful and write it with a new data structure.) for this new version of cascading classifier, a lot of code is added,The classifier trained using haartraining is also of the old version.How can I add a new version of cascade classifier? We expect that the next version of opencv will replace the old version with the new version of Haar cascade classifier. From this code, I also deeply understand the bitterness of version compatibility. We also wish opencv better and better, more regular, and more powerful.

Upload the video, and then upload the recorded video.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.