Face Engine SDK
4.7.0
A face detection, recognition and tracking engine.
Detection.h
1
#pragma once
2
3
namespace
fsdk
{
4
9
template
<
typename
Type>
10
struct
BaseDetection
{
11
12
typedef
Type ElementType;
13
14
BaseRect<Type>
rect
;
15
float
score
;
16
21
BaseDetection
() noexcept
22
:
score
(0.f) {}
23
24
template
<
typename
OtherType>
25
BaseDetection
(
const
BaseDetection<OtherType>
& other) {
26
*
this
= other;
27
}
28
34
bool
isValid
() const noexcept {
35
return
rect
.isValid() && (
score
>= 0.f &&
score
<= 1.f);
36
}
37
38
template
<
typename
OtherType>
39
BaseDetection
& operator = (
const
BaseDetection<OtherType>
& other) noexcept {
40
if
(
reinterpret_cast<
const
void
*
>
(
this
) !=
reinterpret_cast<
const
void
*
>
(&other)) {
41
score
= other.score;
42
rect
=
static_cast<
BaseRect<Type>
>
(other.rect);
43
}
44
return
*
this
;
45
}
46
};
47
48
typedef
BaseDetection<int> Detection;
49
}
fsdk::BaseDetection::BaseDetection
BaseDetection() noexcept
Initializes a default detection.
Definition:
Detection.h:21
fsdk::BaseDetection::isValid
bool isValid() const noexcept
Checks whether a detection is valid.
Definition:
Detection.h:34
fsdk
SDK namespace.
Definition:
IAGSEstimator.h:8
fsdk::BaseRect
Rectangle.
Definition:
Rect.h:10
fsdk::BaseDetection::score
float score
Object detection score.
Definition:
Detection.h:15
fsdk::BaseDetection::rect
BaseRect< Type > rect
Object bounding box.
Definition:
Detection.h:14
fsdk::BaseDetection
Face detection. @detail Stores a detected face bounding box within a source image frame as well as de...
Definition:
Detection.h:10
fsdk.framework
Headers
Types
Detection.h
Generated on Fri Dec 10 2021 17:47:37 for Face Engine SDK by
1.8.20