OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 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 
7 
8 namespace op
9 {
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 
36  };
37 }
38 
39 #endif // OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:33
Definition: jsonOfstream.hpp:9
Definition: cocoJsonSaver.hpp:14
CocoJsonFormat
Definition: enumClasses.hpp:13
#define OP_API
Definition: macros.hpp:18
std::string string
Definition: cl2.hpp:574