/motion-heatmap-opencv

A repository to store codes and supportive material to the omonimous Medium article

Primary LanguagePython

motion-heatmap-opencv

A repository to store codes and supportive material to the omonimous Medium article. This code is an adaptation of the Intel Motion Heatmap

Run

Cone this repository, cd into the directory and run python motion_heatmap.py , if you want to use another video change the path in motion_heatmap.py in the main() function.

Requirements

To run this script you will need python 3.6+ installed along with OpenCV 3.3.0+ and numpy. Make also sure to have installed the MOG background subtractor by running:

pip install opencv-contrib-python

Enjoy!