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/jsonOfstream.hpp
>
6
7
namespace
op
8
{
13
class
OP_API
CocoJsonSaver
14
{
15
public
:
22
explicit
CocoJsonSaver
(
const
std::string
& filePathToSave,
const
bool
humanReadable =
true
);
23
24
~
CocoJsonSaver
();
25
26
void
record(
const
Array<float>
& poseKeypoints,
const
Array<float>
& poseScores,
const
std::string
& imageName);
27
28
private
:
29
JsonOfstream
mJsonOfstream;
30
bool
mFirstElementAdded;
31
32
DELETE_COPY
(
CocoJsonSaver
);
33
};
34
}
35
36
#endif // OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition:
macros.hpp:30
common.hpp
op::JsonOfstream
Definition:
jsonOfstream.hpp:9
op::CocoJsonSaver
Definition:
cocoJsonSaver.hpp:13
op::Array< float >
jsonOfstream.hpp
OP_API
#define OP_API
Definition:
macros.hpp:15
cl::string
std::string string
Definition:
cl2.hpp:574
include
openpose
filestream
cocoJsonSaver.hpp
Generated by
1.8.6