I am trying to write a program that can create a polygon(of any number of sides) around a certain object and find the polygon\'s centroid . For this purpose, I opted to use
It is probably a simple linking problem.
If you are compiling in Debug mode, the linker needs the Input Variables opencv_world310d.lib
not the opencv_world310.lib
(notice the d
before the dot).
Only when you compile the Release mode you have to type in the opencv_world310.lib
.
I had the same problem. Cost me a day to figure out.