| Face Engine SDK 4.7.0 A face detection, recognition and tracking engine.

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IMedicalMaskEstimator.h
1 #pragma once
2
3 #pragma once
4
5 #include <fsdk/IObject.h>
6 #include <fsdk/FSDKError.h>
7 #include <fsdk/Optional.h>
8 #include <fsdk/Types.h>
9
10 namespace fsdk {
11
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
13 DECLARE_SMARTPTR(IMedicalMaskEstimator);
14 #endif
15
20 enum class MedicalMask {
21 Mask = 0,
22 NoMask,
23 OccludedFace
24 };
25
30 enum class MedicalMaskExtended {
31 Mask = 0,
32 NoMask,
33 MaskNotInPlace,
34 OccludedFace
35 };
36
43 struct MedicalMaskEstimation {
44 MedicalMask result;
45 // scores
46 float maskScore;
47 float noMaskScore;
48 float occludedFaceScore;
49 };
50
57 struct MedicalMaskEstimationExtended {
58 MedicalMaskExtended result;
59 // scores
60 float maskScore;
61 float noMaskScore;
62 float maskNotInPlace;
63 float occludedFaceScore;
64 };
65
70 struct IMedicalMaskEstimator : IRefCounted {
71
78 virtual Result<FSDKError>
79 estimate(
80 const Image& warp,
81 MedicalMaskEstimation& estimation) const noexcept = 0;
82
89 virtual Result<FSDKError>
90 estimate(
91 const Image& warp,
92 MedicalMaskEstimationExtended& estimation) const noexcept = 0;
93
101 virtual Result<FSDKError>
102 estimate(
103 const Image& image,
104 const Detection& detection,
105 MedicalMaskEstimation& estimation) const noexcept = 0;
106
114 virtual Result<FSDKError>
115 estimate(
116 const Image& image,
117 const Detection& detection,
118 MedicalMaskEstimationExtended& estimation) const noexcept = 0;
119
128 virtual Result<FSDKError>
129 estimate(
130 Span<const Image> warps,
131 Span<MedicalMaskEstimation> estimations) const noexcept = 0;
132
141 virtual Result<FSDKError>
142 estimate(
143 Span<const Image> warps,
144 Span<MedicalMaskEstimationExtended> estimations) const noexcept = 0;
145
155 virtual Result<FSDKError>
156 estimate(
157 Span<const Image> images,
158 Span<const Detection> detections,
159 Span<MedicalMaskEstimation> estimations) const noexcept = 0;
160
170 virtual Result<FSDKError>
171 estimate(
172 Span<const Image> images,
173 Span<const Detection> detections,
174 Span<MedicalMaskEstimationExtended> estimations) const noexcept = 0;
175 };
176
177 } // namespace fsdk
fsdk::MedicalMask::NoMask
no medical mask on the face
fsdk::MedicalMaskExtended::MaskNotInPlace
mask is not on the right place
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk::Result< FSDKError >
Types.h
Common data types and structures.
fsdk::MedicalMask::Mask
medical mask is on the face
fsdk::MedicalMaskExtended
MedicalMaskExtended
MedicalMask estimator output enum. This enum contains all possible extended estimation results...
Definition: IMedicalMaskEstimator.h:30
IObject.h
Object system types and interfaces.
fsdk::MedicalMaskEstimationExtended::occludedFaceScore
float occludedFaceScore
face is occluded by something score
Definition: IMedicalMaskEstimator.h:63
FSDKError.h
Common SDK error codes.
fsdk::MedicalMaskEstimation::noMaskScore
float noMaskScore
no medical mask on the face score
Definition: IMedicalMaskEstimator.h:47
fsdk::MedicalMaskEstimation::result
MedicalMask result
estimation result (
Definition: IMedicalMaskEstimator.h:44
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::MedicalMaskEstimationExtended::noMaskScore
float noMaskScore
no medical mask on the face score
Definition: IMedicalMaskEstimator.h:61
fsdk::MedicalMaskEstimation::occludedFaceScore
float occludedFaceScore
face is occluded by something score
Definition: IMedicalMaskEstimator.h:48
fsdk::IMedicalMaskEstimator
MedicalMask estimator interface.
Definition: IMedicalMaskEstimator.h:70
fsdk::MedicalMaskEstimationExtended::maskScore
float maskScore
medical mask is on the face score
Definition: IMedicalMaskEstimator.h:60
fsdk::MedicalMaskEstimationExtended
MedicalMask estimator output structure. This structure contains the result of estimation (...
Definition: IMedicalMaskEstimator.h:57
fsdk::MedicalMaskEstimationExtended::maskNotInPlace
float maskNotInPlace
mask is not on the right place
Definition: IMedicalMaskEstimator.h:62
fsdk::Image
Image.
Definition: Image.h:38
fsdk::MedicalMaskEstimation
MedicalMask estimator output structure. This structure contains the result of estimation (...
Definition: IMedicalMaskEstimator.h:43
fsdk::IMedicalMaskEstimator::estimate
virtual Result< FSDKError > estimate(const Image &warp, MedicalMaskEstimation &estimation) const noexcept=0
Estimate MedicalMask probabilities.
fsdk::MedicalMask
MedicalMask
MedicalMask estimator output enum. This enum contains all possible estimation results.
Definition: IMedicalMaskEstimator.h:20
fsdk::MedicalMaskEstimation::maskScore
float maskScore
medical mask is on the face score
Definition: IMedicalMaskEstimator.h:46
fsdk::MedicalMaskEstimationExtended::result
MedicalMaskExtended result
estimation result (
Definition: IMedicalMaskEstimator.h:58
fsdk::MedicalMask::OccludedFace
face is occluded by something
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
fsdk::BaseDetection
Face detection. Stores a detected face bounding box within a source image frame as well as detection...
Definition: Detection.h:10