Skip to content

Commit 6f35b92

Browse files
committed
Merge remote-tracking branch 'origin/Phase-2' into Phase-2
2 parents 3c6161d + f4ba63c commit 6f35b92

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,30 @@ The following shows the activity diagram for our proposed schema :
5757
*Fig 1 : Activity Diagram*
5858

5959
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+
6084
## Steps to Run the application
6185
Run the following commands in the root folder to build and run the Human Detector and Tracker
6286

include/Robot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @file Robot.h
2525
* @author Iteration 1 : Aditi Ramadwar (Driver) , Arunava Basu (Navigator)
2626
* Iteration 2 : Arunava Basu (Navigator) , Aditi Ramadwar (Driver)
27-
* @brief
27+
* @brief Header robot class for setting parameters and calculating transformation matrix
2828
* @version 0.1
2929
* @date 2021-10-14
3030
*

src/HumanDetector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @file HumanDetector.cpp
2323
* @author Iteration 1 : Aditi Ramadwar (Driver) , Arunava Basu (Navigator)
2424
* Iteration 2 : Arunava Basu (Navigator) , Aditi Ramadwar (Driver)
25-
* @brief
25+
* @brief Class for Detecting humans and getting required data
2626
* @version 0.1
2727
* @date 2021-10-14
2828
*

src/Robot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @file Robot.cpp
2323
* @author Iteration 1 : Aditi Ramadwar (Driver) , Arunava Basu (Navigator)
2424
* Iteration 2 : Arunava Basu (Navigator) , Aditi Ramadwar (Driver)
25-
* @brief
25+
* @brief Robot class for setting parameters and calculating transformation matrix
2626
* @version 0.1
2727
* @date 2021-10-14
2828
*

0 commit comments

Comments
 (0)