deep learning for computer vision finallyyou'll use opencv to generate an image that superimposes the original image on the heatmap you just obtained (see figure listing superimposing he heat map wit he original pict ure import cv img cv imread(img_pathuses cv to load the original image resizes the heatmap to be the same size as the original image heatmap cv resize(heatmap(img shape[ ]img shape[ ])heatmap np uint ( heatmapheatmap cv applycolormap(heatmapcv colormap_jetconverts the heatmap to rgb superimposed_img heatmap img cv imwrite('/users/fchollet/downloads/elephant_cam jpg'superimposed_img here is heatmap intensity factor saves the image to disk applies the heatmap to the original image figure superimposing he class act ivation heatmap on the original pict ure this visualization technique answers two important questionswhy did the network think this image contained an african elephantwhere is the african elephant located in the picturein particularit' interesting to note that the ears of the elephant calf are strongly activatedthis is probably how the network can tell the difference between african and indian elephants licensed to