5 #include <fsdk/Types/Vector2.h>
22 template <
size_t numOfLandmarks>
26 static constexpr uint64_t landmarkCount = numOfLandmarks;
39 *
this = std::move(mv);
42 Landmarks& operator=(
const Landmarks& cp) {
43 std::copy(std::begin(cp.landmarks), std::end(cp.landmarks), std::begin(
landmarks));
48 Landmarks& operator=(Landmarks&& mv) {
49 std::move(std::begin(mv.landmarks), std::end(mv.landmarks), std::begin(
landmarks));
54 constexpr
size_t size() const noexcept {
55 return numOfLandmarks;
58 bool isValid() const noexcept {
60 return l.x == 0.f && l.y == 0.f;
Enumerates detected landmarks. Only valid for template with 5 landmarks.
Definition: Landmarks.h:74
#define FSDK_API
Dummy.
Definition: Def.h:27
Face landmarks template structure.
Definition: Landmarks.h:23
Not a landmark; counts number of detected landmarks.
Definition: Landmarks.h:81
Mouth right corner. Same as FL_MOUTH_RIGHT_CORENR.
Definition: Landmarks.h:80
Left eye center.
Definition: Landmarks.h:76
Landmarks5 FSDK_API convert(const Landmarks68 &landmarks)
convert landmarks68 into landmarks5
Right eye center.
Definition: Landmarks.h:77
Landmarks< 68 > Landmarks68
alias for structure with 68 landmarks
Definition: Landmarks.h:69
Landmark landmarks[numOfLandmarks]
Detected landmarks.
Definition: Landmarks.h:29
Landmarks< 5 > Landmarks5
alias for structure with 5 landmarks
Definition: Landmarks.h:67
Nose tip. Same as FL_NOSE_TIP.
Definition: Landmarks.h:78
Mouth left corner. Same as FL_MOUTH_LEFT_CORNER.
Definition: Landmarks.h:79
Vector2< float > Landmark
Landmark floating point coordinates type.
Definition: Landmarks.h:13