def extract_and_describe(img,kmeans):
features = daisy(rgb2grey(img), step = 4).reshape((-1,200))
assignments = kmeans.predict(features)
histogram, _= np.histogram(assignments,bins=500,range=(0,499))
return histogram
评论列表
文章目录