I'm trying to use findContours in OpenCV. When I debug my program, everything works fine until
findContours(canny_output, contours, hierarchy, RETR_TREE, CHAIN_APPROX_SIMPLE, Point(0, 0));
I get the message:
OpenCVFirst.exe has triggered a breakpoint
I already read that this could be because of linking the wrong OpenCV files, but I linked the right ones with d (for debug) at the end.
My code is like in the official OpenCV example: http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html
I'm using OpenCV 3.0 in Visual Studio 2015 with Windows 10.
It still doesn't work. Here is what I did:
Download CMake and just follow the install wizard.
Download the newest release of OpenCV (this may take some time, depending on your internet connection).
Launch CMake GUI and set the source / release dir.
Waiting until 'Configuring done' is written in the output line. Then, I clicked 'Generate' and waited for the makefile to be generated.
It said 'generating done'.
I went to the release folder and opened 'OpenCV.sln' with Visual Studio (I used Visual Studio 2015)
Now it loaded some files. When it told me on the left bottom 'ready', I clicked on Build -> Build solution (Strg + Shift + B)
Then I included to my existing OpenCV Project the new libs from my new release folder. I still get the same error.