| Face Engine SDK 5.7.0 A face detection, recognition and tracking engine.

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
47 using HumanLandmarks17 = HumanLandmarks<17>;
48 }
fsdk::HumanLandmark::visible
bool visible
true if the current point is visible and point member contains valid coordinates.
Definition: HumanLandmarks.h:22
fsdk::HumanLandmark
Human keypoints landmark structure.
Definition: HumanLandmarks.h:10
fsdk::HumanLandmark::score
float score
Point score. Do not use it untill you really need it.
Definition: HumanLandmarks.h:17
fsdk::Vector2< float >
fsdk::HumanLandmark::point
fsdk::Point2f point
Definition: HumanLandmarks.h:20
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::HumanLandmarks
Human keypoints landmarks template structure.
Definition: HumanLandmarks.h:29