OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
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 
8 
9 namespace op
10 {
16  {
17  public:
24  explicit CocoJsonSaver(
25  const std::string& filePathToSave, const PoseModel poseModel, const bool humanReadable = true,
26  const int cocoJsonVariants = 1, const CocoJsonFormat cocoJsonFormat = CocoJsonFormat::Body,
27  const int cocoJsonVariant = 0);
28 
29  virtual ~CocoJsonSaver();
30 
31  void record(
32  const Array<float>& poseKeypoints, const Array<float>& poseScores, const std::string& imageName,
33  const unsigned long long frameNumber);
34 
35  private:
36  const PoseModel mPoseModel;
37  const int mCocoJsonVariant;
38  std::vector<std::tuple<JsonOfstream, CocoJsonFormat, bool>> mJsonOfstreams;
39 
41  };
42 }
43 
44 #endif // OPENPOSE_FILESTREAM_POSE_JSON_COCO_SAVER_HPP
void record(const Array< float > &poseKeypoints, const Array< float > &poseScores, const std::string &imageName, const unsigned long long frameNumber)
CocoJsonSaver(const std::string &filePathToSave, const PoseModel poseModel, const bool humanReadable=true, const int cocoJsonVariants=1, const CocoJsonFormat cocoJsonFormat=CocoJsonFormat::Body, const int cocoJsonVariant=0)
virtual ~CocoJsonSaver()
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32
CocoJsonFormat
Definition: enumClasses.hpp:15
PoseModel
Definition: enumClasses.hpp:10