Compiling and debugging of C ++ TLD Algorithms

Source: Internet
Author: User
Tags floor function tld

The debugging process of C ++ is as follows:

Remove header files from each other. Pay attention to the top-level header files and delete unnecessary header files.

Perform forced type conversion for some functions to conform to the function usage. Change the data type to the doule type, for example, the floor function.

Define a round function and add necessary header files. In vs2010, you cannot directly call the round function. The initial configuration is vs2010 and opencv2.2. BecauseProgramAn error is reported during connection,

Add an additional dependency item opencv_feature2d220d.lib in vs2010, but the camera cannot be opened and can be used to draw a box, but it will crash in a moment, probably because of Environment configuration. Finally, configure opencv2.3.1 in vs2008. After configuration, remember to set parameters for argc and argv. The camera can be opened normally, but in debug mode, the program is quite slow, in the release mode, the speed is much faster.

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.