OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
op::CocoJsonSaver Class Reference

#include <cocoJsonSaver.hpp>

Public Member Functions

 CocoJsonSaver (const std::string &filePathToSave, const PoseModel poseModel, const bool humanReadable=true, const int cocoJsonVariants=1, const CocoJsonFormat cocoJsonFormat=CocoJsonFormat::Body, const int cocoJsonVariant=0)
 
virtual ~CocoJsonSaver ()
 
void record (const Array< float > &poseKeypoints, const Array< float > &poseScores, const std::string &imageName, const unsigned long long frameNumber)
 

Detailed Description

The CocoJsonSaver class creates a COCO validation json file with details about the processed images. It inherits from Recorder.

Definition at line 15 of file cocoJsonSaver.hpp.

Constructor & Destructor Documentation

◆ CocoJsonSaver()

op::CocoJsonSaver::CocoJsonSaver ( const std::string &  filePathToSave,
const PoseModel  poseModel,
const bool  humanReadable = true,
const int  cocoJsonVariants = 1,
const CocoJsonFormat  cocoJsonFormat = CocoJsonFormat::Body,
const int  cocoJsonVariant = 0 
)
explicit

This constructor of CocoJsonSaver extends the Recorder::Recorder(const std::string & filePathToSave) constructor.

Parameters
filePathToSaveconst std::string parameter with the final file path where the generated json file will be saved.

◆ ~CocoJsonSaver()

virtual op::CocoJsonSaver::~CocoJsonSaver ( )
virtual

Member Function Documentation

◆ record()

void op::CocoJsonSaver::record ( const Array< float > &  poseKeypoints,
const Array< float > &  poseScores,
const std::string &  imageName,
const unsigned long long  frameNumber 
)

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