Face Engine SDK  4.6.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IBestShotQualityEstimator.h
1 #pragma once
2 
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/Optional.h>
6 #include <fsdk/Types.h>
7 
8 #include "IHeadPoseEstimator.h" // for HeadPoseEstimation
9 
10 namespace fsdk {
11 
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
13  DECLARE_SMARTPTR(IBestShotQualityEstimator);
14 #endif
15 
21 
27  estimateAGS = 1 << 0,
28  estimateHeadPose = 1 << 1,
29  estimateAll = 0xffff
30  };
31 
38  };
39 
49  const fsdk::Image& image,
50  const fsdk::Detection& detection,
52  fsdk::IBestShotQualityEstimator::EstimationResult& result) const noexcept = 0;
53 
66  const fsdk::Span<const fsdk::Image> images,
67  const fsdk::Span<const fsdk::Detection> detections,
68  const EstimationRequest request,
70  };
71 
72  /*
73  Implementation details.
74  */
76  operator|(
79  ) {
81  static_cast<int>(first) | static_cast<int>(second)
82  );
83  }
84 
85 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
Common data types and structures.
BestShot and Quality estimator interface.
Definition: IBestShotQualityEstimator.h:20
EstimationRequest
EstimationRequest lists all possible estimation attributes that BestShotQuality estimator is able to ...
Definition: IBestShotQualityEstimator.h:26
Object system types and interfaces.
BestShotQualityEstimator output structure.
Definition: IBestShotQualityEstimator.h:35
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
Definition: Optional.h:14
Make full estimation (all attributes)
Definition: IBestShotQualityEstimator.h:29
virtual Result< FSDKError > estimate(const fsdk::Image &image, const fsdk::Detection &detection, const fsdk::IBestShotQualityEstimator::EstimationRequest request, fsdk::IBestShotQualityEstimator::EstimationResult &result) const noexcept=0
Estimate unified AGS and HeadPose attributes.
Estimate HeadPose.
Definition: IBestShotQualityEstimator.h:28
Image.
Definition: Image.h:37
Optional< float > ags
AGS estimation if was requested, empty otherwise.
Definition: IBestShotQualityEstimator.h:37
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
Estimate AGS.
Definition: IBestShotQualityEstimator.h:27
Face detection. Stores a detected face bounding box within a source image frame as well as detection...
Definition: Detection.h:10
Optional< HeadPoseEstimation > headPose
HeadPose estimation if was requested, empty otherwise.
Definition: IBestShotQualityEstimator.h:36