OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator 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 
6 
7 namespace op
8 {
13  {
14  public:
19  explicit CocoJsonSaver(const std::string& filePathToSave, const bool humanReadable = true);
20 
21  ~CocoJsonSaver();
22 
23  void record(const Array<float>& poseKeypoints, const std::string& imageName);
24 
25  private:
26  JsonOfstream mJsonOfstream;
27  bool mFirstElementAdded;
28 
30  };
31 }
32 
33 #endif // OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:25
Definition: jsonOfstream.hpp:9
Definition: cocoJsonSaver.hpp:12
#define OP_API
Definition: macros.hpp:5