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