Face Engine SDK
4.7.0
A face detection, recognition and tracking engine.
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;
14
fsdk::BaseDetection<ElementType>
detection;
15
Optional<fsdk::Landmarks5>
landmarks5;
16
Optional<fsdk::Landmarks68>
landmarks68;
17
Optional<fsdk::OrientationType>
orientation;
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
}
fsdk::BaseDetection::isValid
bool isValid() const noexcept
Checks whether a detection is valid.
Definition:
Detection.h:34
fsdk::Face
Definition:
Face.h:9
fsdk
SDK namespace.
Definition:
IAGSEstimator.h:8
Types.h
Common data types and structures.
fsdk::Optional
Definition:
Optional.h:14
fsdk::Image::isValid
bool isValid() const noexcept
Definition:
Image.h:673
fsdk::Image
Image.
Definition:
Image.h:38
fsdk::BaseDetection< ElementType >
fsdk.framework
Headers
Face.h
Generated on Fri Dec 10 2021 17:47:37 for Face Engine SDK by
1.8.20