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'
看起来好像您在选择性搜索模块中导入了
selectivesearch
,然后调用它而不是调用函数。在错误说明不能像函数一样调用模块
相关问题 更多 >
编程相关推荐