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.