Face Engine SDK
5.8.0
A face detection, recognition and tracking engine.
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
}
fsdk::Face
Definition:
Face.h:10
fsdk
SDK namespace.
Definition:
IAGSEstimator.h:8
fsdk::Detection::isValid
bool isValid() const noexcept
Checks whether a detection is valid.
Definition:
Detection.h:116
fsdk::Detection
Detection structure. @detail Stores a detected bounding box within a source image rect.
Definition:
Detection.h:10
fsdk::Image::isValid
bool isValid() const noexcept
Definition:
Image.h:757
fsdk::Image
Image.
Definition:
Image.h:38
fsdk.framework
Headers
Types
Face.h
Generated on Fri Jun 17 2022 12:22:02 for Face Engine SDK by
1.8.20