cascaded Classifier Training-----OpenCV

Source: Internet
Author: User

Keywords: cascade classifier, Opencv_traincascade

The following is a brief description of the operation process:

    1. Prepare positive and negative samples: neg, pos
    2. Positive and negative sample path generation: Dir/a/b>path.txt//path:pos or neg
    3. Positive sample Training Set generation: Opencv_createsamples.exe-info Pos\pos.txt-vec pos\pos.vec-num 799-w 24-h Pause
    4. Sample training: Opencv_traincascade.exe-data Data-vec pos/pos.vec-bg neg/neg.txt-numpos 100-numneg 2000-numstages 5-featuretyp E lbp-w 24-h 24-minhitrate 0.999-maxfalsealarmrate 0.1-mode All
    • -numstages: Training Series A
    • -numpos: Number of positive samples per level of training B
    • a*b<= Total Positive Sample number
    • -numneg: Number of negative samples used per level of training C
    • c<= Total Negative Sample number
    • -featuretype: Detection Features
    • Experience: LBP for rapid training and detection, hog can better adapt to different lighting, haar suitable for the environment more complex situation

Precautions

    1. If an error occurs, first check whether the parameter set is correct, second, consider changing the machine, and finally consider the change of machine environment configuration.
    2. If you stay at a certain training stage for a long time, it indicates that it is very possible to get into a cycle, and also indicates that the classifier has reached a better state at this stage, you can exit (CTR+C) and then reduce the training progression or adjust other parameters.
    3. If the training effect is not ideal, consider increasing the sample set and modifying the relevant training parameters.

cascaded Classifier Training-----OpenCV

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.