Face Engine SDK  5.21.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IDeepFakeEstimator.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 namespace fsdk {
9  namespace experimental {
10 
11 #ifndef DOXYGEN_SHOULD_SKIP_THIS
12  DECLARE_SMARTPTR(IDeepFakeEstimator);
13 #endif
14 
28  enum class DeepFakeMode {
29  Default, // Specified in config file.
30  M1, // M1.
31  M2 // M2.
32  };
33 
44  enum class State {
45  Real = 0,
46  Fake
47  };
48 
49  float score;
51  };
52 
74  const Image& image,
75  const Detection& detection,
76  DeepFakeEstimation& estimation) const noexcept = 0;
77 
93  Span<const Image> images,
94  Span<const Detection> detections,
95  Span<DeepFakeEstimation> estimations) const noexcept = 0;
96 
111  virtual Result<FSDKError> validate(
112  Span<const Image> images,
113  Span<const Detection> detections,
114  Span<Result<FSDKError>> errors) const noexcept = 0;
115  };
116  } // namespace experimental
117 
119 } // namespace fsdk
The person on image is fake (media is synthetic)
DeepFake estimator interface. The current implementation is experimental, and does not support backwa...
Definition: IDeepFakeEstimator.h:60
#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
Common data types and structures.
DeepFakeMode
DeepFake estimation mode. Currently, available values for selecting estimation scenario are: Default...
Definition: IDeepFakeEstimator.h:28
State state
Liveness status.
Definition: IDeepFakeEstimator.h:50
Object system types and interfaces.
State
Definition: IDeepFakeEstimator.h:44
virtual Result< FSDKError > validate(Span< const Image > images, Span< const Detection > detections, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call. The current implementation is experiment...
Common SDK error codes.
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, DeepFakeEstimation &estimation) const noexcept=0
DeepFake estimation. The current implementation is experimental, and does not support backward compat...
Base strong reference counted object interface.
Definition: IRefCounted.h:37
DeepFake estimation structure. The current implementation is experimental, and does not support backw...
Definition: IDeepFakeEstimator.h:43
float score
Estimation score.
Definition: IDeepFakeEstimator.h:49
Image.
Definition: Image.h:38
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