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
Why am I getting this error? I'm confused.
What do you need to know to answer my question? I trying to run this code
import skimage.data
import selectivesearch
import matplotlib.pyplot as plt
img = skimage.data.astronaut()
img_lbl, regions= selectivesearch.selectivesearch(img, scale=500, sigma=0.9, min_size=10)
regions[:10]
[{'labels': [0.0], 'rect': (0, 0, 15, 24), 'size': 260},
{'labels': [1.0], 'rect': (13, 0, 1, 12), 'size': 23}]
whan i use function selective_search
get this error
AttributeError: module 'selectivesearch' has no attribute 'selective_search'