You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,30 @@ The following shows the activity diagram for our proposed schema :
57
57
*Fig 1 : Activity Diagram*
58
58
59
59
The corresponding class diagram can be found [here](https://github.com/llDev-Rootll/Human_Detection_Tracking-CPP/blob/development/UML/revised/Revised_Class_Diagram.pdf).
60
+
61
+
## Output Data Explained
62
+
At the output of the Human Detection module from the `detectHumans` method we get a vector of Rects ('Rect' is a data type in OpenCV).
63
+
64
+
The structure of Rect is: (x, y, z, redundant); It has four parameters,
65
+
the first three parameters indicate the coordinates of a point in terms of robot's reference frame (x, y, z)
66
+
67
+
These coordinates can be extracted from the Rect and used as per application.
68
+
The redundant variable is part of the transformation vector which is not useful for us for showing the location of the human detected.
69
+
70
+
For each person detected in frame, two Rects are created. We are taking two location points of each human detected. To get an estimated location of the human in the entire frame, we need to extract the x, y, z coordinates from both the Rects created where,
71
+
x is the distance of the human from the robot's reference frame,
72
+
y is the horizontal component and
73
+
z is the vertical component.
74
+
75
+
Example:
76
+
If there are two humans detected in a frame, then we will get a vector of four Rects. Consider the output vector variable we got is 'positions'. Size of positions is 4 since in our example 2 humans are detected, then, first human's location will be extracted from Rects positions[0] and positions[1]
77
+
second human's location will be extracted from Rects positions[2] and positions[3]
78
+
Example for location extraction of one of the coordinates of the first human:
79
+
80
+
> x = position[0] (0)
81
+
> y = position[0] (1)
82
+
> z = position[0] (2)
83
+
60
84
## Steps to Run the application
61
85
Run the following commands in the root folder to build and run the Human Detector and Tracker
0 commit comments