utils.py 文件源码

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

项目:fontkaruta_classifier 作者: suga93 项目源码 文件源码
def save_cam_image(img, mask, filename):
    img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
    heatmap = cv2.applyColorMap(np.uint8(255.*mask), cv2.COLORMAP_JET)
    res = np.concatenate((img, heatmap), axis=1)
    cv2.imwrite(filename, res)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号