23 #ifndef SRC_INTERMEDIATE_STRUCTURES_H_
24 #define SRC_INTERMEDIATE_STRUCTURES_H_
Uses TensorFlow Lite to perform pose estimation on a given image frame to detect noteworthy joints.
Definition: inference_core.cpp:31
Smoothen the results of inference and average body parts since the system assumes a side-on profile.
Definition: intermediate_structures.cpp:23
Status
A PostProcessing::Coordinate's position can be either Untrustworthy or Trustworthy
Definition: intermediate_structures.h:104
@ Trustworthy
Definition: intermediate_structures.h:104
@ Untrustworthy
Definition: intermediate_structures.h:104
std::string stringStatus(Status s)
Converts the Untrustworthy/Trustworthy status to a string.
Definition: intermediate_structures.cpp:25
Responsible for resizing and normalising the input image to a structure suitable for TensorFlow Lite.
Definition: intermediate_structures.h:77
Indicates position and confidence in positioning of a body part node.
Definition: intermediate_structures.h:183
float y
The relative X co-ordinate of the body part detected.
Definition: intermediate_structures.h:185
float x
The relative X co-ordinate of the body part detected.
Definition: intermediate_structures.h:184
float confidence
The confidence in this body part being the one determined from inference. Values are in the range [0....
Definition: intermediate_structures.h:192
Results of running the model for all body parts.
Definition: intermediate_structures.h:199
std::array< Coordinate, BodyPartMax+1 > body_parts
Each element of this array corresponds to a body part with a defined Inference::Coordinate which spec...
Definition: intermediate_structures.h:206
Intermediate result of pose estimation
Definition: intermediate_structures.h:162
size_t y
The absolute Y co-ordinate of the body part detected.
Definition: intermediate_structures.h:171
float confidence
The confidence in this body part being the one determined from inference. Values are in the range [0....
Definition: intermediate_structures.h:169
size_t x
The absolute X co-ordinate of the body part detected.
Definition: intermediate_structures.h:170
Indicates position and trustworthiness of a body part node.
Definition: intermediate_structures.h:122
Status status
A Coordinate is either Trustworthy or Untrustworthy
Definition: intermediate_structures.h:125
float x
The relative X co-ordinate of the detected body part.
Definition: intermediate_structures.h:123
float y
The relative Y co-ordinate of the detected body part.
Definition: intermediate_structures.h:124
The PostProcessing::Coordinate of each body part.
Definition: intermediate_structures.h:139
std::array< Coordinate, JointMax+1 > body_parts
Each element of this array corresponds to a body part with a defined PostProcessing::Coordinate which...
Definition: intermediate_structures.h:147
A structure of the pre processed image.
Definition: intermediate_structures.h:85
float * image
The image array where each pixel is represented by the 3 RGB channels.
Definition: intermediate_structures.h:91