Skip to content

Commit 8f93e40

Browse files
authored
TM&B and copy edits
1 parent 33a6d7b commit 8f93e40

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

examples/motion-heatmap/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# Motion Heatmap
22

3-
This sample application is useful to see patterns of movement 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.
3+
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.
44

5-
## What you’ll learn
6-
* background subtraction
7-
* application of a threshold
8-
* accumulation of changed pixels over time
9-
* add a color/heat map
5+
## What you’ll learn
6+
* Background subtraction
7+
* Application of a threshold
8+
* Accumulation of changed pixels over time
9+
* Add a color/heat map
1010

1111
## Gather your materials
12-
* Python 2.7 or greater
12+
* Python\* 2.7 or greater
1313
* OpenCV version 3.3.0 or greater
1414
* The vtest.avi video from https://github.com/opencv/opencv/blob/master/samples/data/vtest.avi
1515

1616
## Setup
17-
1. You need the extra modules installed for the MOG background subtractor. This tutorial was tested on Windows, and the easiest way to install it was using
17+
1. You need the extra modules installed for the MOG background subtractor. This tutorial was tested on Windows\*, and the easiest way to install it was using:
1818
```
1919
pip install opencv-contrib-python
2020
```
2121
2. Download the vtest.avi video from https://github.com/opencv/opencv/blob/master/samples/data/vtest.avi and put it in the same folder as the python script.
22-
3. Run the python script. You should see a diff-overlay.jpg when it's done.
22+
3. Run the python script. You should see a diff-overlay.jpg when it's done.
2323

2424
![](images/diff-overlay.jpg)
2525

@@ -38,6 +38,6 @@ cv2.bgsegm.createBackgroundSubtractorMOG()
3838
* cv2.applyColorMap() - https://docs.opencv.org/3.0-beta/modules/imgproc/doc/colormaps.html
3939
* cv2.addWeighted() - https://docs.opencv.org/3.2.0/d0/d86/tutorial_py_image_arithmetics.html
4040

41-
The application takes each frame and first applies background subtraction using the cv2.bgsegm.createBackgroundSubtractorMOG() object to create a mask. A threshold is then applied to the mask to remove small amounts of movement, and also to set the accumulation value for each iteration. The result of the threshold is added to an accumulation image (one that starts out at all zero and gets added to each iteration without removing anything), which is what records the motion. At the very end, a color map is applied to the accumulated image so it's easier to see the motion. This colored imaged is then combined with a copy of the first frame using cv2.addWeighted to accomplish the overlay.
41+
The application takes each frame and first applies background subtraction using the cv2.bgsegm.createBackgroundSubtractorMOG() object to create a mask. A threshold is then applied to the mask to remove small amounts of movement, and also to set the accumulation value for each iteration. The result of the threshold is added to an accumulation image (one that starts out at all zero and gets added to each iteration without removing anything), which is what records the motion. At the very end, a color map is applied to the accumulated image so it's easier to see the motion. This colored imaged is then combined with a copy of the first frame using cv2.addWeighted to accomplish the overlay.
4242

43-
IMPORTANT NOTICE: This software is sample software. It is not designed or intended for use in any medical, life-saving or life-sustaining systems, transportation systems, nuclear systems, or for any other mission-critical application in which the failure of the system could lead to critical injury or death. The software may not be fully tested and may contain bugs or errors; it may not be intended or suitable for commercial release. No regulatory approvals for the software have been obtained, and therefore software may not be certified for use in certain countries or environments.
43+
IMPORTANT NOTICE: This software is sample software. It is not designed or intended for use in any medical, life-saving or life-sustaining systems, transportation systems, nuclear systems, or for any other mission-critical application in which the failure of the system could lead to critical injury or death. The software may not be fully tested and may contain bugs or errors; it may not be intended or suitable for commercial release. No regulatory approvals for the software have been obtained, and therefore software may not be certified for use in certain countries or environments.

0 commit comments

Comments
 (0)