赞
踩
heatmap:是你要叠加在原始图像的热力图 img :是你的原始图片
heatmap = cv2.applyColorMap(heatmap,cv2.COLORMAP_JET)
superimposed_img = (heatmap*0.3+img*0.7).astype(np.uint8)
对superimposed_img就可以可视化了