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
Face.h
1 #pragma once
2 
3 #include "Types.h"
4 #include "Optional.h"
5 #include "Types/OrientationType.h"
6 
7 namespace fsdk {
8 
9  struct Face {
10 
11  typedef float ElementType;
12 
13  fsdk::Image img;
15  Optional<fsdk::Landmarks5> landmarks5;
16  Optional<fsdk::Landmarks68> landmarks68;
18 
19  bool isValid() const {
20  return img.isValid() && detection.isValid();
21  }
22 
23  explicit Face() = default;
24  explicit Face(const fsdk::Image& image) : img(image) {};
25  explicit Face(
26  const fsdk::Image& image,
27  const fsdk::BaseDetection<ElementType>& detection) :
28  img(image),
29  detection(detection) {};
30  };
31 
32 }
Common data types and structures.
Definition: Face.h:9
bool isValid() const noexcept
Checks whether a detection is valid.
Definition: Detection.h:34
Definition: Optional.h:14
Image.
Definition: Image.h:37
bool isValid() const noexcept
Definition: Image.h:672