Face Engine SDK  4.6.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Landmarks.h
1 #pragma once
2 
3 #include "Vector2.h"
4 
5 #include <iterator>
6 #include <cstdint>
7 
8 namespace fsdk {
11 
17  template<size_t numOfLandmarks>
18  struct Landmarks {
19  static constexpr uint64_t landmarkCount = numOfLandmarks;
20 
22  Landmark landmarks[landmarkCount];
23 
24  Landmarks() = default;
25  ~Landmarks() = default;
26 
27  Landmarks(const Landmarks& cp) {
28  *this = cp;
29  }
30 
31  Landmarks(Landmarks&& mv) {
32  *this = std::move(mv);
33  }
34 
35  Landmarks& operator=(const Landmarks& cp) {
36  std::copy(
37  std::begin(cp.landmarks),
38  std::end(cp.landmarks),
39  std::begin(landmarks));
40 
41  return *this;
42  }
43 
44  Landmarks& operator=(Landmarks&& mv) {
45  std::move(
46  std::begin(mv.landmarks),
47  std::end(mv.landmarks),
48  std::begin(landmarks));
49 
50  return *this;
51  }
52  };
53 
58 
63  enum {
70  };
71  };
72 
78  Landmarks5 convert(const Landmarks68& landmarks);
79 }
Landmarks5 convert(const Landmarks68 &landmarks)
convert landmarks68 into landmarks5
Enumerates detected landmarks. Only valid for template with 5 landmarks.
Definition: Landmarks.h:62
Face landmarks template structure.
Definition: Landmarks.h:18
Not a landmark; counts number of detected landmarks.
Definition: Landmarks.h:69
Mouth right corner. Same as FL_MOUTH_RIGHT_CORENR.
Definition: Landmarks.h:68
Left eye center.
Definition: Landmarks.h:64
Right eye center.
Definition: Landmarks.h:65
Landmarks< 68 > Landmarks68
alias for structure with 68 landmarks
Definition: Landmarks.h:57
Landmarks< 5 > Landmarks5
alias for structure with 5 landmarks
Definition: Landmarks.h:55
Nose tip. Same as FL_NOSE_TIP.
Definition: Landmarks.h:66
Mouth left corner. Same as FL_MOUTH_LEFT_CORNER.
Definition: Landmarks.h:67
Landmark landmarks[landmarkCount]
Detected landmarks.
Definition: Landmarks.h:22
Vector2< float > Landmark
Landmark floating point coordinates type.
Definition: Landmarks.h:10