哪里可以找到`Findcontour`的源代码

问题描述 投票:0回答:1

我正在寻找CV2中

findcontour
函数的源代码。我想从头开始实现这个功能。我已经了解了论文中的理论
Topological Structural Analysis of Digitized Binary Images by Border Following
。我想看看这个实现是用 python 完成的。

image image-processing computer-vision image-segmentation
1个回答
2
投票

兔子洞开始于https://github.com/opencv/opencv/blob/master/modules/imgproc/src/contours.cpp#L1793

祝你好运;)

该库是用 C++ 编写的。没有 Python 代码。当您在 Python 中使用它时,Python 会调用已编译的函数。

© www.soinside.com 2019 - 2024. All rights reserved.