I am working on a localisation problem of object detection. I got the coordinates of rectangular boxes in different frames of video. So my numpy array looks like this--
[[403 172 614 326]
[345 153 652 383]
[345 172 537 326]
...
[134 115 326 307]
[153 57 403 307]
[191 19 479 230]]
Here 4 values in each column are x1, y1, x2, y2 which are basically coordinates of rectangular box defined as--
__________________(x2,y2)
| |
| |
| |
_(x1,y1)__________
(x1,y1) and (x2,y2) are coordinates of the rectangular localised box as shown.
Frame size (taken from a video) is constant. It is 480 * 850.
I need to plot heat map for these values, saying pixels which are occupied by more no. of boxes need to be more bright.
Sample Heat Map
Basically, this is not a normal heatmap (plotting of 2d array based on its value).
Can anyone suggest how to obtain heatmaps in this way?
