Skip to content

Commit 712689e

Browse files
committed
Merge pull request opencv#9865 from ryanfox:patch-4
2 parents 7b0d2d1 + 3da9598 commit 712689e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/py_tutorials/py_video/py_bg_subtraction/py_bg_subtraction.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ In this chapter,
1111
Basics
1212
------
1313

14-
Background subtraction is a major preprocessing steps in many vision based applications. For
15-
example, consider the cases like visitor counter where a static camera takes the number of visitors
14+
Background subtraction is a major preprocessing step in many vision-based applications. For
15+
example, consider the case of a visitor counter where a static camera takes the number of visitors
1616
entering or leaving the room, or a traffic camera extracting information about the vehicles etc. In
1717
all these cases, first you need to extract the person or vehicles alone. Technically, you need to
1818
extract the moving foreground from static background.
1919

20-
If you have an image of background alone, like image of the room without visitors, image of the road
20+
If you have an image of background alone, like an image of the room without visitors, image of the road
2121
without vehicles etc, it is an easy job. Just subtract the new image from the background. You get
2222
the foreground objects alone. But in most of the cases, you may not have such an image, so we need
23-
to extract the background from whatever images we have. It become more complicated when there is
24-
shadow of the vehicles. Since shadow is also moving, simple subtraction will mark that also as
23+
to extract the background from whatever images we have. It become more complicated when there are
24+
shadows of the vehicles. Since shadows also move, simple subtraction will mark that also as
2525
foreground. It complicates things.
2626

2727
Several algorithms were introduced for this purpose. OpenCV has implemented three such algorithms
28-
which is very easy to use. We will see them one-by-one.
28+
which are very easy to use. We will see them one-by-one.
2929

3030
### BackgroundSubtractorMOG
3131

@@ -76,7 +76,7 @@ throughout the algorithm). It provides better adaptibility to varying scenes due
7676
changes etc.
7777

7878
As in previous case, we have to create a background subtractor object. Here, you have an option of
79-
selecting whether shadow to be detected or not. If detectShadows = True (which is so by default), it
79+
detecting shadows or not. If detectShadows = True (which is so by default), it
8080
detects and marks shadows, but decreases the speed. Shadows will be marked in gray color.
8181
@code{.py}
8282
import numpy as np
@@ -104,7 +104,7 @@ cv2.destroyAllWindows()
104104
### BackgroundSubtractorGMG
105105

106106
This algorithm combines statistical background image estimation and per-pixel Bayesian segmentation.
107-
It was introduced by Andrew B. Godbehere, Akihiro Matsukawa, Ken Goldberg in their paper "Visual
107+
It was introduced by Andrew B. Godbehere, Akihiro Matsukawa, and Ken Goldberg in their paper "Visual
108108
Tracking of Human Visitors under Variable-Lighting Conditions for a Responsive Audio Art
109109
Installation" in 2012. As per the paper, the system ran a successful interactive audio art
110110
installation called “Are We There Yet?” from March 31 - July 31 2011 at the Contemporary Jewish

0 commit comments

Comments
 (0)