THE 3 rd INTERNATIONAL SCIENTIFIC CONFERENCES OF STUDENTS AND YOUNG RESEARCHERS dedicated to the 99
th
anniversary of the National Leader of Azerbaijan Heydar Aliyev
176
Case 1: Directed Up or Down. In this case we take the difference
between the y-coordinate of the current centroid and the mean of previous
centroids. If the difference is negative, the direction is considered as “Up”, if
the difference is positive, it is considered as “Down”.
On the picture (Frame), the y-coordinate of the current centroid of the
dog is 50 approximately, while the mean of previous centroids is < 50. The
difference will be > 0 which lets the program know that the direction of the
dog is down. For the cat, it will be vice versa, therefore up.
Case 2: Directed Left or Right. In this case we take the difference
between the x-coordinate of the current centroid and the mean of previous
centroids. If the difference is negative, the direction is considered as “Left”, if
the difference is positive, it is considered as “Right”.
On the picture (Frame), the x-coordinate
of the current centroid of the person is 90
approximately, while the mean of previous
centroids is < 90. The difference will be > 0
which lets the program know that the direction
of the person is to the left. For the car, it will
be vice versa, therefore to the right.
Several tests were carried out to check
the accuracy, from where certain conclusions
were made. The method used is pretty
accurate, having an accuracy of almost 90%
(every 9 out of 10 people are detected
exactly), yet dependent on the environment
of the recording space. To be clear, in some
cases, the cloth of the person may be the
same as the ground, thus making the person
blend with it. Another important factors which
may affect the quality are stabilization and
the angle of the footage under which it is
taken or recorded. It is more efficient to
place the camera firmly to the ceiling or the
needed surface, so that it will not shake or
move at the slightest impact.
The results of one of the experiments,
where there is up/down direction detected,
are shown below. So, as we mentioned
earlier, the software before “seeing” and
making clear that there is a person in the
frame is in the status of Detecting (1
st
picture). In a fraction of a second, the person