OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
op::WrapperStructOutput Struct Reference

#include <wrapperStructOutput.hpp>

Public Member Functions

 WrapperStructOutput (const bool displayGui=false, const bool guiVerbose=false, const bool fullScreen=false, const std::string &writeKeypoint="", const DataFormat writeKeypointFormat=DataFormat::Xml, const std::string &writeJson="", const std::string &writeCocoJson="", const std::string &writeImages="", const std::string &writeImagesFormat="", const std::string &writeVideo="", const std::string &writeHeatMaps="", const std::string &writeHeatMapsFormat="")
 

Public Attributes

bool displayGui
 
bool guiVerbose
 
bool fullScreen
 
std::string writeKeypoint
 
DataFormat writeKeypointFormat
 
std::string writeJson
 
std::string writeCocoJson
 
std::string writeImages
 
std::string writeImagesFormat
 
std::string writeVideo
 
std::string writeHeatMaps
 
std::string writeHeatMapsFormat
 

Detailed Description

WrapperStructOutput: Output (small GUI, writing rendered results and/or pose data, etc.) configuration struct. WrapperStructOutput allows the user to set up the input frames generator.

Constructor & Destructor Documentation

op::WrapperStructOutput::WrapperStructOutput ( const bool  displayGui = false,
const bool  guiVerbose = false,
const bool  fullScreen = false,
const std::string &  writeKeypoint = "",
const DataFormat  writeKeypointFormat = DataFormat::Xml,
const std::string &  writeJson = "",
const std::string &  writeCocoJson = "",
const std::string &  writeImages = "",
const std::string &  writeImagesFormat = "",
const std::string &  writeVideo = "",
const std::string &  writeHeatMaps = "",
const std::string &  writeHeatMapsFormat = "" 
)

Constructor of the struct. It has the recommended and default values we recommend for each element of the struct. Since all the elements of the struct are public, they can also be manually filled.

Member Data Documentation

bool op::WrapperStructOutput::displayGui

Whether to display the OpenPose small integrated GUI.

bool op::WrapperStructOutput::fullScreen

Whether to display the OpenPose small integrated GUI on fullscreen mode. It can be changed by interacting with the GUI itself.

bool op::WrapperStructOutput::guiVerbose

Whether to add some information to the frame (number of frame, number people detected, etc.) after it is saved on disk and before it is displayed and/or returned to the user.

std::string op::WrapperStructOutput::writeCocoJson

Pose (x, y, score) locations saving folder location in JSON COCO validation format. If it is empty (default), it is disabled.

std::string op::WrapperStructOutput::writeHeatMaps

Rendered heat maps saving folder. In order to save the heatmaps, WrapperStructPose.heatMapTypes must also be filled. If it is empty (default), it is disabled.

std::string op::WrapperStructOutput::writeHeatMapsFormat

Heat maps image saving format. Analogous to writeImagesFormat.

std::string op::WrapperStructOutput::writeImages

Rendered image saving folder. If it is empty (default), it is disabled.

std::string op::WrapperStructOutput::writeImagesFormat

Rendered image saving folder format. Check your OpenCV version documentation for a list of compatible formats. E.g. png, jpg, etc. If writeImages is empty (default), it makes no effect.

std::string op::WrapperStructOutput::writeJson

Directory to write OpenPose output in JSON format. If it is empty (default), it is disabled. It includes:

  • people field with body, hand, and face pose keypoints in (x, y, score) format.
  • part_candidates field with body part candidates in (x, y, score) format (if enabled with --part_candidates).
std::string op::WrapperStructOutput::writeKeypoint

Pose (x, y, score) locations saving folder location. If it is empty (default), it is disabled. Select format with writeKeypointFormat.

DataFormat op::WrapperStructOutput::writeKeypointFormat

Data format to save Pose (x, y, score) locations. Options: DataFormat::Json (default), DataFormat::Xml and DataFormat::Yml (equivalent to DataFormat::Yaml) JSON option only available for OpenCV >= 3.0.

std::string op::WrapperStructOutput::writeVideo

Rendered images saving video path. Please, use *.avi format. If it is empty (default), it is disabled.


The documentation for this struct was generated from the following file: