Code Sample: Motion Heatmap Using OpenCV in Python*

ID 657819
Updated 11/30/2017
Version Latest



This sample application is useful to see movement patterns over time. For example, it could be used to see the usage of entrances to a factory floor over time, or patterns of shoppers in a store.

What You’ll Learn

  • Background subtraction
  • Application of a threshold
  • Accumulation of changed pixels over time
  • Adding a color/heat map

Gather Your Materials