title: how do i generate a heat map of a detected object based on its position using opencv python
body: <p>I need to generate the heat map of a object based on its position 
  example: the detected green ball in a video frame . If it stays in a position for a long duration then that place should be red and the positions in the frame where the ball has passes for a short duration must be in blue in that way i need to generate a heat map . Thanks in advance</p>