Face Engine SDK  5.31.0
A face detection, recognition and tracking engine.
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 
30  enum class State {
31  Real = 0,
32  Fake
33  };
34 
35  float score;
37  };
38 
60  const Image& image,
61  const Detection& detection,
62  DeepFakeEstimation& estimation) const noexcept = 0;
63 
79  Span<const Image> images,
80  Span<const Detection> detections,
81  Span<DeepFakeEstimation> estimations) const noexcept = 0;
82 
98  Span<const Image> images,
99  Span<const Detection> detections,
100  Span<Result<FSDKError>> errors) const noexcept = 0;
101  };
102  } // namespace experimental
103 
105 } // 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:46
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
SDK namespace.
Definition: IAGSEstimator.h:8
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Common data types and structures.
State state
Liveness status.
Definition: IDeepFakeEstimator.h:36
Object system types and interfaces.
State
Definition: IDeepFakeEstimator.h:30
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:29
float score
Estimation score.
Definition: IDeepFakeEstimator.h:35
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