bovw.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:Food-Classification 作者: Tkd-Alex 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号