Face Engine SDK 5.25.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
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
8namespace 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
SDK namespace.
Definition IAGSEstimator.h:8
Detection structure. @detail Stores a detected bounding box within a source image rect.
Definition Detection.h:10
bool isValid() const noexcept
Checks whether a detection is valid.
Definition Detection.h:119
Definition Face.h:10
Image.
Definition Image.h:38
bool isValid() const noexcept
Definition Image.h:777