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 {
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 
33  };
34 }
35 
36 #endif // OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:24
Definition: jsonOfstream.hpp:9
Definition: cocoJsonSaver.hpp:13
#define OP_API
Definition: macros.hpp:9