Face Engine SDK  5.23.1
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)
25  : img(image){};
26  explicit Face(const fsdk::Image& image, const fsdk::Detection& detection)
27  : img(image)
28  , detection(detection){};
29  };
30 
31 } // namespace fsdk
bool isValid() const noexcept
Checks whether a detection is valid.
Definition: Detection.h:119
Definition: Face.h:10
Image.
Definition: Image.h:38
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
bool isValid() const noexcept
Definition: Image.h:777