OpenPose
1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
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/filestream/jsonOfstream.hpp
>
7
8
namespace
op
9
{
14
class
OP_API
CocoJsonSaver
15
{
16
public
:
23
explicit
CocoJsonSaver
(
const
std::string
& filePathToSave,
const
bool
humanReadable =
true
,
24
const
CocoJsonFormat
cocoJsonFormat =
CocoJsonFormat::Body
);
25
26
virtual
~
CocoJsonSaver
();
27
28
void
record(
const
Array<float>
& poseKeypoints,
const
Array<float>
& poseScores,
const
std::string
& imageName);
29
30
private
:
31
const
CocoJsonFormat
mCocoJsonFormat;
32
JsonOfstream
mJsonOfstream;
33
bool
mFirstElementAdded;
34
35
DELETE_COPY
(
CocoJsonSaver
);
36
};
37
}
38
39
#endif // OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition:
macros.hpp:33
op::CocoJsonFormat::Body
common.hpp
op::JsonOfstream
Definition:
jsonOfstream.hpp:9
op::CocoJsonSaver
Definition:
cocoJsonSaver.hpp:14
enumClasses.hpp
op::Array< float >
jsonOfstream.hpp
op::CocoJsonFormat
CocoJsonFormat
Definition:
enumClasses.hpp:13
OP_API
#define OP_API
Definition:
macros.hpp:18
cl::string
std::string string
Definition:
cl2.hpp:574
include
openpose
filestream
cocoJsonSaver.hpp
Generated by
1.8.6