Face Engine SDK  5.8.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
HumanLandmarks.h
1 #pragma once
2 
3 #include <fsdk/Types.h>
4 #include <fsdk/Optional.h>
5 
6 namespace fsdk {
10  struct HumanLandmark {
11  HumanLandmark() = default;
12  explicit HumanLandmark(float s, const fsdk::Point2f& p)
13  : score{ s }
14  , point{ p }
15  {}
17  float score{ 0.0f };
20  fsdk::Point2f point{ 0.0f, 0.0f };
22  bool visible = false;
23  };
24 
28  template<size_t numOfLandmarks = 17>
29  struct HumanLandmarks {
30  // element access
31  const HumanLandmark& operator [](int idx) const noexcept {
32  assert(idx < numOfLandmarks);
33  return landmarks[idx];
34  }
35 
36  HumanLandmark& operator [](int idx) noexcept {
37  assert(idx < numOfLandmarks);
38  return landmarks[idx];
39  }
40 
41  static constexpr size_t landmarksCount = numOfLandmarks;
42  // Detected landmarks.
43  HumanLandmark landmarks[landmarksCount];
44  };
45 
48 }
bool visible
true if the current point is visible and point member contains valid coordinates. ...
Definition: HumanLandmarks.h:22
Common data types and structures.
fsdk::Point2f point
Definition: HumanLandmarks.h:20
Human keypoints landmarks template structure.
Definition: HumanLandmarks.h:29
float score
Point score. Do not use it untill you really need it.
Definition: HumanLandmarks.h:17
Human keypoints landmark structure.
Definition: HumanLandmarks.h:10