OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
personIdExtractor.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_TRACKING_PERSON_ID_EXTRACTOR_HPP
2 #define OPENPOSE_TRACKING_PERSON_ID_EXTRACTOR_HPP
3 
5 
6 namespace op
7 {
9  {
10  public:
11  PersonIdExtractor(const float confidenceThreshold = 0.1f, const float inlierRatioThreshold = 0.5f,
12  const float distanceThreshold = 30.f, const int numberFramesToDeletePerson = 10);
13 
14  virtual ~PersonIdExtractor();
15 
16  Array<long long> extractIds(const Array<float>& poseKeypoints, const Matrix& cvMatInput,
17  const unsigned long long imageViewIndex = 0ull);
18 
19  Array<long long> extractIdsLockThread(const Array<float>& poseKeypoints, const Matrix& cvMatInput,
20  const unsigned long long imageViewIndex,
21  const long long frameId);
22 
23  private:
24  // PIMPL idiom
25  // http://www.cppsamples.com/common-tasks/pimpl.html
26  struct ImplPersonIdExtractor;
27  std::shared_ptr<ImplPersonIdExtractor> spImpl;
28 
30  };
31 }
32 
33 #endif // OPENPOSE_TRACKING_PERSON_ID_EXTRACTOR_HPP
Array< long long > extractIdsLockThread(const Array< float > &poseKeypoints, const Matrix &cvMatInput, const unsigned long long imageViewIndex, const long long frameId)
PersonIdExtractor(const float confidenceThreshold=0.1f, const float inlierRatioThreshold=0.5f, const float distanceThreshold=30.f, const int numberFramesToDeletePerson=10)
virtual ~PersonIdExtractor()
Array< long long > extractIds(const Array< float > &poseKeypoints, const Matrix &cvMatInput, const unsigned long long imageViewIndex=0ull)
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32