OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
personTracker.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_OPENPOSE_PRIVATE_TRACKING_PERSON_TRACKER_HPP
2 #define OPENPOSE_OPENPOSE_PRIVATE_TRACKING_PERSON_TRACKER_HPP
3 
5 
6 namespace op
7 {
9  {
10  public:
11  PersonTracker(const bool mergeResults, const int levels = 3, const int patchSize = 31,
12  const float confidenceThreshold = 0.05f, const bool trackVelocity = false,
13  const bool scaleVarying = false, const float rescale = 640);
14 
15  virtual ~PersonTracker();
16 
17  void track(Array<float>& poseKeypoints, Array<long long>& poseIds, const Matrix& cvMatInput);
18 
19  void trackLockThread(Array<float>& poseKeypoints, Array<long long>& poseIds, const Matrix& cvMatInput,
20  const long long frameId);
21 
22  bool getMergeResults() const;
23 
24  private:
25  // PIMPL idiom
26  // http://www.cppsamples.com/common-tasks/pimpl.html
27  struct ImplPersonTracker;
28  std::shared_ptr<ImplPersonTracker> spImpl;
29 
31  };
32 }
33 
34 #endif // OPENPOSE_OPENPOSE_PRIVATE_TRACKING_PERSON_TRACKER_HPP
void track(Array< float > &poseKeypoints, Array< long long > &poseIds, const Matrix &cvMatInput)
void trackLockThread(Array< float > &poseKeypoints, Array< long long > &poseIds, const Matrix &cvMatInput, const long long frameId)
bool getMergeResults() const
virtual ~PersonTracker()
PersonTracker(const bool mergeResults, const int levels=3, const int patchSize=31, const float confidenceThreshold=0.05f, const bool trackVelocity=false, const bool scaleVarying=false, const float rescale=640)
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32