| Face Engine SDK 5.34.0 A face detection, recognition and tracking engine.

IFaceLandmarksDetector.h
1
8 #pragma once
9
10 #include <fsdk/FSDKError.h>
11 #include <fsdk/IObject.h>
12 #include <fsdk/Types.h>
13 #include <fsdk/IFaceLandmarksBatch.h>
14 #include <fsdk/IDetector.h>
15
16 #include <fsdk/vlc/future.h>
17
18 namespace fsdk {
19
20 #ifndef DOXYGEN_SHOULD_SKIP_THIS
21 DECLARE_SMARTPTR(IFaceLandmarksDetector);
22 #endif
23
24 struct IFaceLandmarksDetector : IRefCounted {
25
38 virtual ResultValue<FSDKError, Ref<IFaceLandmarksBatch>>
39 detectLandmarks5(Span<const Image> images, Span<Span<const Detection>> detections) const noexcept = 0;
40
53 virtual ResultValue<FSDKError, Ref<IFaceLandmarksBatch>>
54 detectLandmarks68(Span<const Image> images, Span<Span<const Detection>> detections) const noexcept = 0;
55
69 virtual Result<FSDKError> validate(
70 Span<const Image> images,
71 Span<Span<const Detection>> detections,
72 Span<Span<Result<FSDKError>>> errors) const noexcept = 0;
73
86 virtual Result<FSDKError> detectLandmarks5(
87 const Image& image,
88 Span<const Detection> detections,
89 Span<Landmarks5> landmarks) const noexcept = 0;
90
103 virtual Result<FSDKError> detectLandmarks68(
104 const Image& image,
105 Span<const Detection> detections,
106 Span<Landmarks68> landmarks) const noexcept = 0;
107
119 virtual Result<FSDKError> validate(
120 const Image& images,
121 Span<const Detection> detections,
122 Span<Result<FSDKError>> errors) const noexcept = 0;
123
137 virtual Result<FSDKError> validate(
138 Span<const Image> images,
139 Span<Span<const Detection>> detections,
140 DetectionType detectionType,
141 Span<Span<Result<FSDKError>>> errors) const noexcept = 0;
142
146 using FaceLandmarksBatchFuture = vlc::future<IFaceLandmarksBatchPtr>;
147
162 virtual FaceLandmarksBatchFuture detectLandmarksAsync(
163 Span<const Image> images,
164 Span<Span<const Detection>> detections,
165 DetectionType detectionType) const = 0;
166 };
167
170 } // namespace fsdk
fsdk::IFaceLandmarksDetector::validate
virtual Result< FSDKError > validate(Span< const Image > images, Span< Span< const Detection >> detections, Span< Span< Result< FSDKError >>> errors) const noexcept=0
Validates input of multiple frames in a single function call.
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::IFaceLandmarksDetector::FaceLandmarksBatchFuture
vlc::future< IFaceLandmarksBatchPtr > FaceLandmarksBatchFuture
Common alias for IFaceLandmarksDetector asynchronous interface.
Definition: IFaceLandmarksDetector.h:146
fsdk::IFaceLandmarksDetector::detectLandmarksAsync
virtual FaceLandmarksBatchFuture detectLandmarksAsync(Span< const Image > images, Span< Span< const Detection >> detections, DetectionType detectionType) const =0
Asynchronously detects landmarks5 and/or landmarks68 on multiple images.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::IFaceLandmarksDetector::detectLandmarks5
virtual ResultValue< FSDKError, Ref< IFaceLandmarksBatch > > detectLandmarks5(Span< const Image > images, Span< Span< const Detection >> detections) const noexcept=0
Detects landmarks5 on multiple images.
fsdk::IFaceLandmarksDetector
Definition: IFaceLandmarksDetector.h:24
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
IDetector.h
Face detector interfaces.
fsdk::Image
Image.
Definition: Image.h:38
fsdk::IFaceLandmarksDetector::detectLandmarks68
virtual ResultValue< FSDKError, Ref< IFaceLandmarksBatch > > detectLandmarks68(Span< const Image > images, Span< Span< const Detection >> detections) const noexcept=0
Detects landmarks68 on multiple images.
fsdk::DetectionType
DetectionType
Detection type enumeration.
Definition: IDetector.h:58
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14