Webcam Motion Detection 2007
Webcam Motion Detection 2007
III - 514
colors represent magnitudes as indicated in the colour bar. δ for pixel matching was also compared based on the joint
The directions of pixel motion is also represented by colors Euclidean distance of RGB colour channels rather than
in the bar where angles are measured anticlockwise from the treating the channels separately as in (6).
vertical e.g. yellow indicates a direction towards the top left. In the case of pixel mismatching, there will be at least
Motion vectors are not assigned if no internally mismatching one pixel in the fork that differs by more than δ with one or
forks can be found e.g. in areas of low saliency. The more of the other pixels in the fork according to
processing took 0.23 seconds in C++.
¦ (F ) 2
The parameters of the experiment were M = 100, N = ( x 'i ) - Fk ( x 'j ) > į, for some i, j. (11)
k
100, ε = 3 , m = 7, V = 10, į = (40,40,40), T = 12.6. T is set k
to be twice the standard deviation of the values in the matrix The fork centered on x0 is said to match that at y0 (Sx
I x. matches Sy) if the Euclidean distance between corresponding
fork pixels are all less than δ
¦ (F ( x i′ ) - Fk ( y i′ ) ) ≤ į, ∀ i.
2
k
(12)
k
40
35
30
Tracking angles (degrees)
separate metric
20
joint metric
15
3.2 Object Tracking 10
defined as follows Fig. 4. Weighted tracking angles for Motion VA algorithm against
θ= ¦ (MI × AI ) ,
2
(10)
numbers of fork pixels and separate (6) and joint (12) distance
metrics. Black’s estimate is = 24.6° .
¦ MI 2
where MI is magnitude of the motion of a pixel, and AI is the Fork radii of ε = 2,3,4,5,6 (fork sizes of 5x5 to 13x13)
angle of the direction of motion of the pixel. A squared were then used with other parameters fixed to compare the
weighting was used so that motion vectors with higher performance on the angle estimates for motion VA algorithm
values have a bigger influence on the weighted angle as they using the separate channel metric. The results illustrated in
are likely to be more reliable. Figure 5 shows that a slightly better estimate can be obtained
Colour images are used in contrast to the grayscale with bigger fork radii but there is little improvement above
images used by Black because they provide more 15 pixels. Also the results converge as the number of fork
information for the comparison of regions. A new threshold pixels increase.
III - 515
Tracking angle s vs Fork pixe ls
The method was illustrated on various video data and
40 different thresholding criteria. Compared to Black’s
35 technique the attention method was shown to obtain a better
30 estimate of motion direction. The stability of the results can
be improved by increasing the volume of processing. The
Tracking angles (degrees)
5x5 fork
25
7x7 fork
20 9x9 fork
11x11 fork
simple elements are amenable to parallel implementation. In
15 13x13 fork addition, the method does not require a training stage or
10 prior knowledge of the objects to be tracked.
5 Future work will be carried out on wider range of data
0 to establish threshold values with more certainty with
2 5 9 15 20 25
no. fork pixe ls (m ) particular emphasis on addressing noise arising from
background motion and changes in illumination. Camera
Fig. 5. Weighted tracking angles for Motion VA algorithm using
the separate channel metric (6) motion involved with football data in Fig. 6 and 7 can also
be estimated and used to improve motion estimation
3.3 Football Data accuracy on players.
III - 516