4

我正在使用分水岭算法进行图像分割(分割前景和背景),我收到以下错误:

AttributeError:“模块”对象没有属性“连接组件”

该算法可以在以下位置找到: http: //opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_imgproc/py_watershed/py_watershed.html#image-segmentation-with-watershed-algorithm问题出在connectedComponents上. 我正在使用 openCv 2.4.8

我很感激任何帮助。

4

0 回答 0