Ask Your Question

Revision history [back]

My confusion is in whether both old and new headers will be loaded when i set the path to build\include\opencv2 and whether that will cause issues.

That will not be an issue. Old C-headers are in the /include/opencv/ folder while the new c++ headers are in the /include/opencv2/ folder.

For the exposure setting, the only correct function is cap.set(CV_CAP_PROP_EXPOSURE, 150);. If that doesn't work than that simply means that your camera is using an OpenCV interface that doesn't support setting the exposure of your cam. Only option then is to use the API provided by your camera manufacturer, if it is already possible at all.

Also, if a header is linked in the Solution Explorer does that mean you don't have to "#include<module.hpp>" it?

No, the linker options in the solution explorer simply points where that data is. Your file still needs the correct includes else your compiler will complain about not knowing where to look for the function.