TypeError:“module”对象不是可调用的选择性搜索

2024-09-30 16:27:51 发布

您现在位置:Python中文网/ 问答频道 /正文

File "<ipython-input-23-e640c8ab269c>", line 1, in <module>
img_lbl, regions= selectivesearch.selectivesearch(img, scale=500, sigma=0.9, min_size=10)
TypeError: 'module' object is not callable

为什么我得到这个错误?我很困惑。在

你需要知道什么才能回答我的问题? 我试着运行这个代码

^{pr2}$

我怎么使用函数selective_search得到这个错误 AttributeError: module 'selectivesearch' has no attribute 'selective_search'


Tags: inimginputsearch错误ipythonlinefile