OpenPose
1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
cocoJsonSaver.hpp
Go to the documentation of this file.
1
#ifndef OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
2
#define OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
3
4
#include <
openpose/core/common.hpp
>
5
#include <
openpose/filestream/enumClasses.hpp
>
6
#include <
openpose/pose/enumClasses.hpp
>
7
#include <
openpose/filestream/jsonOfstream.hpp
>
8
9
namespace
op
10
{
15
class
OP_API
CocoJsonSaver
16
{
17
public
:
24
explicit
CocoJsonSaver
(
25
const
std::string& filePathToSave,
const
PoseModel
poseModel,
const
bool
humanReadable =
true
,
26
const
int
cocoJsonVariants = 1,
const
CocoJsonFormat
cocoJsonFormat =
CocoJsonFormat::Body
,
27
const
int
cocoJsonVariant = 0);
28
29
virtual
~CocoJsonSaver
();
30
31
void
record
(
32
const
Array<float>
& poseKeypoints,
const
Array<float>
& poseScores,
const
std::string& imageName,
33
const
unsigned
long
long
frameNumber);
34
35
private
:
36
const
PoseModel
mPoseModel;
37
const
int
mCocoJsonVariant;
38
std::vector<std::tuple<JsonOfstream, CocoJsonFormat, bool>> mJsonOfstreams;
39
40
DELETE_COPY
(
CocoJsonSaver
);
41
};
42
}
43
44
#endif
// OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
op::Array< float >
op::CocoJsonSaver
Definition:
cocoJsonSaver.hpp:16
op::CocoJsonSaver::record
void record(const Array< float > &poseKeypoints, const Array< float > &poseScores, const std::string &imageName, const unsigned long long frameNumber)
op::CocoJsonSaver::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)
op::CocoJsonSaver::~CocoJsonSaver
virtual ~CocoJsonSaver()
common.hpp
enumClasses.hpp
jsonOfstream.hpp
OP_API
#define OP_API
Definition:
macros.hpp:18
DELETE_COPY
#define DELETE_COPY(className)
Definition:
macros.hpp:32
op
Definition:
cameraParameterReader.hpp:7
op::CocoJsonFormat
CocoJsonFormat
Definition:
enumClasses.hpp:15
op::CocoJsonFormat::Body
@ Body
op::PoseModel
PoseModel
Definition:
enumClasses.hpp:10
enumClasses.hpp
include
openpose
filestream
cocoJsonSaver.hpp
Generated by
1.9.1