我正在尝试在 OpenCV 中使用 findContours。当我调试我的程序时,一切正常,直到
findContours(canny_output, contours, hierarchy, RETR_TREE, CHAIN_APPROX_SIMPLE, Point(0, 0));
我收到消息:
OpenCVFirst.exe 已触发断点
我已经读到这可能是因为链接了错误的 OpenCV 文件,但我最后将正确的文件与 d (用于调试)链接。
我的代码就像在官方 OpenCV 示例中一样:http: //docs.opencv.org/doc/tutorials/imgproc/shapeescriptors/find_contours/find_contours.html
我在带有 Windows 10 的 Visual Studio 2015 中使用 OpenCV 3.0。