7 #include <fsdk/Optional.h>
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71 float scores[
static_cast<int>(DetailedMaskType::Count)];
249 return scores[
static_cast<int>(type)];
face is covered with not a medical mask or a full mask
virtual Result< FSDKError > validate(Span< const Image > warps, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
DetailedMaskType
MedicalMask estimator output enum. This enum contains all type of DetailedMaskType results...
Definition: IMedicalMaskEstimator.h:46
Common data types and structures.
MedicalMask
MedicalMask estimator output enum. This enum contains all possible estimation results.
Definition: IMedicalMaskEstimator.h:25
correct mask on the face (mouth and nose are covered correctly)
Object system types and interfaces.
float getScore(DetailedMaskType type) const
Returns score of required detailed mask type.
Definition: IMedicalMaskEstimator.h:241
float occludedFaceScore
face is occluded by something score
Definition: IMedicalMaskEstimator.h:93
float noMaskScore
no medical mask on the face score
Definition: IMedicalMaskEstimator.h:68
MedicalMask result
estimation result (
Definition: IMedicalMaskEstimator.h:63
face with a mask around a chin, not covering anything from mouth to eyes
Base strong reference counted object interface.
Definition: IRefCounted.h:37
float noMaskScore
no medical mask on the face score
Definition: IMedicalMaskEstimator.h:91
float occludedFaceScore
face is occluded by something score
Definition: IMedicalMaskEstimator.h:69
MedicalMask estimator interface.
Definition: IMedicalMaskEstimator.h:100
float maskScore
medical mask is on the face score
Definition: IMedicalMaskEstimator.h:90
MedicalMask estimator output structure. This structure contains the result of estimation (...
Definition: IMedicalMaskEstimator.h:87
float maskNotInPlace
mask is not on the right place
Definition: IMedicalMaskEstimator.h:92
medical mask is on the face
face is occluded by something
MedicalMaskExtended
MedicalMask estimator output enum. This enum contains all possible extended estimation results...
Definition: IMedicalMaskEstimator.h:35
Image.
Definition: Image.h:38
MedicalMask estimator output structure. This structure contains the result of estimation (...
Definition: IMedicalMaskEstimator.h:62
virtual Result< FSDKError > estimate(const Image &warp, MedicalMaskEstimation &estimation) const noexcept=0
Estimate MedicalMask probabilities.
float maskScore
medical mask is on the face score
Definition: IMedicalMaskEstimator.h:67
MedicalMaskExtended result
estimation result (
Definition: IMedicalMaskEstimator.h:88
DetailedMaskType maskType
detailed type (
Definition: IMedicalMaskEstimator.h:64
mask is not on the right place
face is covered with a full mask (such as balaclava, sky mask, etc.)
clear face - no mask on the face
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
float scores[static_cast< int >(DetailedMaskType::Count)]
detailed estimation scores
Definition: IMedicalMaskEstimator.h:71
no medical mask on the face