我正在寻找CV2中
findcontour
函数的源代码。我想从头开始实现这个功能。我已经了解了论文中的理论Topological Structural Analysis of Digitized Binary Images by Border Following
。我想看看这个实现是用 python 完成的。
兔子洞开始于https://github.com/opencv/opencv/blob/master/modules/imgproc/src/contours.cpp#L1793
祝你好运;)
该库是用 C++ 编写的。没有 Python 代码。当您在 Python 中使用它时,Python 会调用已编译的函数。