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/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 CocoJsonFormat cocoJsonFormat = CocoJsonFormat::Body, const int mCocoJsonVariant = 0);
27
28 virtual ~CocoJsonSaver();
29
30 void record(const Array<float>& poseKeypoints, const Array<float>& poseScores, const std::string& imageName);
31
32 private:
33 const PoseModel mPoseModel;
34 const CocoJsonFormat mCocoJsonFormat;
35 const int mCocoJsonVariant;
36 JsonOfstream mJsonOfstream;
37 bool mFirstElementAdded;
38
39 DELETE_COPY(CocoJsonSaver);
40 };
41 }
42
43 #endif // OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
enumClasses.hpp
op::CocoJsonFormat::Body
op::PoseModel
PoseModel
Definition: enumClasses.hpp:9
common.hpp
op::JsonOfstream
Definition: jsonOfstream.hpp:9
op::CocoJsonSaver
Definition: cocoJsonSaver.hpp:15
enumClasses.hpp
op::Array< float >
jsonOfstream.hpp
op::CocoJsonFormat
CocoJsonFormat
Definition: enumClasses.hpp:14
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574