| Face Engine SDK 5.35.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
29 struct DeepFakeEstimation {
30 enum class State {
31 Real = 0,
32 Fake
33 };
34
35 float score;
36 State state;
37 };
38
46 struct IDeepFakeEstimator : IRefCounted {
59 virtual Result<FSDKError> estimate(
60 const Image& image,
61 const Detection& detection,
62 DeepFakeEstimation& estimation) const noexcept = 0;
63
78 virtual Result<FSDKError> estimate(
79 Span<const Image> images,
80 Span<const Detection> detections,
81 Span<DeepFakeEstimation> estimations) const noexcept = 0;
82
97 virtual Result<FSDKError> validate(
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
fsdk::experimental::DeepFakeEstimation::State::Fake
The person on image is fake (media is synthetic)
fsdk::experimental::IDeepFakeEstimator
DeepFake estimator interface. The current implementation is experimental, and does not support backwa...
Definition: IDeepFakeEstimator.h:46
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:70
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Types.h
Common data types and structures.
fsdk::experimental::DeepFakeEstimation::state
State state
Liveness status.
Definition: IDeepFakeEstimator.h:36
IObject.h
Object system types and interfaces.
fsdk::experimental::DeepFakeEstimation::State
State
Definition: IDeepFakeEstimator.h:30
fsdk::experimental::IDeepFakeEstimator::validate
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...
FSDKError.h
Common SDK error codes.
fsdk::experimental::IDeepFakeEstimator::estimate
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...
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::experimental::DeepFakeEstimation
DeepFake estimation structure. The current implementation is experimental, and does not support backw...
Definition: IDeepFakeEstimator.h:29
fsdk::experimental::DeepFakeEstimation::score
float score
Estimation score.
Definition: IDeepFakeEstimator.h:35
fsdk::Image
Image.
Definition: Image.h:38
fsdk::experimental::DeepFakeEstimation::State::Real
The person on image is real.
fsdk::Detection
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14