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
4
#include <
openpose/core/common.hpp
>
5
6
namespace
op
7
{
8
class
OP_API
PersonIdExtractor
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
29
DELETE_COPY
(
PersonIdExtractor
);
30
};
31
}
32
33
#endif
// OPENPOSE_TRACKING_PERSON_ID_EXTRACTOR_HPP
op::Array< long long >
op::Matrix
Definition:
matrix.hpp:96
op::PersonIdExtractor
Definition:
personIdExtractor.hpp:9
op::PersonIdExtractor::extractIdsLockThread
Array< long long > extractIdsLockThread(const Array< float > &poseKeypoints, const Matrix &cvMatInput, const unsigned long long imageViewIndex, const long long frameId)
op::PersonIdExtractor::PersonIdExtractor
PersonIdExtractor(const float confidenceThreshold=0.1f, const float inlierRatioThreshold=0.5f, const float distanceThreshold=30.f, const int numberFramesToDeletePerson=10)
op::PersonIdExtractor::~PersonIdExtractor
virtual ~PersonIdExtractor()
op::PersonIdExtractor::extractIds
Array< long long > extractIds(const Array< float > &poseKeypoints, const Matrix &cvMatInput, const unsigned long long imageViewIndex=0ull)
common.hpp
OP_API
#define OP_API
Definition:
macros.hpp:18
DELETE_COPY
#define DELETE_COPY(className)
Definition:
macros.hpp:32
op
Definition:
cameraParameterReader.hpp:7
include
openpose
tracking
personIdExtractor.hpp
Generated by
1.9.1