Face Engine SDK  5.14.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 <fsdk/Optional.h>
4 #include <fsdk/Types/Detection.h>
5 #include <fsdk/Types/Image.h>
6 #include <fsdk/Types/Landmarks.h>
7 
8 namespace fsdk {
9 
10  struct Face {
11 
12  typedef float ElementType;
13 
14  fsdk::Image img;
15  fsdk::Detection detection;
16  Optional<fsdk::Landmarks5> landmarks5;
17  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::Detection& detection) :
28  img(image),
29  detection(detection) {};
30  };
31 
32 }
bool isValid() const noexcept
Checks whether a detection is valid.
Definition: Detection.h:116
Definition: Face.h:10
Image.
Definition: Image.h:39
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
bool isValid() const noexcept
Definition: Image.h:774