AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
OutputManager Class Referenceabstract

OutputManager class is a class that abstracts final output-producing operations. An output format inherits from this class, such as OutputManagerJSON. More...

#include <OutputManager.hpp>

Inheritance diagram for OutputManager:
OutputManagerJSON

Public Member Functions

virtual ~OutputManager ()=default
 Destroy the Output Manager object. More...
 

Protected Member Functions

void setStringOutputData (std::string stringOutputData)
 Set the output file's content. More...
 
std::string getStringOutputData (void)
 Get the output file's content. More...
 
virtual Json::Value makeOutputString (std::vector< Point3D * > skeletonPoints3D, std::vector< bool > bodyKeyPointsMap, unsigned int frameID, unsigned int personID)=0
 This method has to be overridden from OutputManager's subclasses to fill the "stringOutputData" string with a certain value which will be saved later. More...
 

Private Attributes

std::string stringOutputData
 Output file's content. More...
 

Detailed Description

OutputManager class is a class that abstracts final output-producing operations. An output format inherits from this class, such as OutputManagerJSON.

Definition at line 32 of file OutputManager.hpp.

Constructor & Destructor Documentation

◆ ~OutputManager()

virtual OutputManager::~OutputManager ( )
virtualdefault

Destroy the Output Manager object.

Member Function Documentation

◆ getStringOutputData()

std::string OutputManager::getStringOutputData ( void  )
protected

Get the output file's content.

Returns
std::string

Definition at line 19 of file OutputManager.cpp.

19 {
20 return this->stringOutputData;
21}
std::string stringOutputData
Output file's content.

References stringOutputData.

Referenced by OutputManagerJSON::saveJSON().

◆ makeOutputString()

virtual Json::Value OutputManager::makeOutputString ( std::vector< Point3D * >  skeletonPoints3D,
std::vector< bool >  bodyKeyPointsMap,
unsigned int  frameID,
unsigned int  personID 
)
protectedpure virtual

This method has to be overridden from OutputManager's subclasses to fill the "stringOutputData" string with a certain value which will be saved later.

Parameters
skeletonPoints3DA vector that contains pointers to Points3D whose coordinates represent the skeleton's junctions in certain space coordinates.
bodyKeyPointsMapA vector that contains for each body joint retrieved from OpenPose a corresponding boolean that means if that body joint is a valuable and effective body joint or not.
frameIDcurrent frame ID.
personIDcurrent person ID within the current frame.
Returns
Json::Value

Implemented in OutputManagerJSON.

◆ setStringOutputData()

void OutputManager::setStringOutputData ( std::string  stringOutputData)
protected

Set the output file's content.

Parameters
stringOutputData

Definition at line 15 of file OutputManager.cpp.

15 {
17}

References stringOutputData.

Referenced by OutputManagerJSON::createJSON(), and OutputManagerJSON::makeOutputString().

Member Data Documentation

◆ stringOutputData

std::string OutputManager::stringOutputData
private

Output file's content.

Definition at line 37 of file OutputManager.hpp.

Referenced by getStringOutputData(), and setStringOutputData().


The documentation for this class was generated from the following files: