image_helper.py 文件源码

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

项目:activitynet-essentials 作者: alex-paterson 项目源码 文件源码
def get_hog(image):
        image = color.rgb2gray(image)
        imgplot = plt.imshow(image, cmap=plt.cm.gray)
        fd, hog_image = hog(image, orientations=8, pixels_per_cell=(16, 16),
            cells_per_block=(1, 1), visualise=True)
        hog_image_rescaled = exposure.rescale_intensity(hog_image,
            in_range=(0, 0.02))
        return hog_image_rescaled
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号