| Face Engine SDK 5.12.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
15 #include <fsdk/vlc/future.h>
16
17 namespace fsdk {
18
19 #ifndef DOXYGEN_SHOULD_SKIP_THIS
20 DECLARE_SMARTPTR(IFaceLandmarksDetector);
21 #endif
22
23 struct IFaceLandmarksDetector : IRefCounted {
24
36 virtual ResultValue<FSDKError, Ref<IFaceLandmarksBatch>> detectLandmarks5(
37 Span<const Image> images,
38 Span<Span<const Detection>> detections) const noexcept = 0;
39
51 virtual ResultValue<FSDKError, Ref<IFaceLandmarksBatch>> detectLandmarks68(
52 Span<const Image> images,
53 Span<Span<const Detection>> detections) const noexcept = 0;
54
68 virtual Result<FSDKError>
69 validate(
70 Span<const Image> images,
71 Span<Span<const Detection>> detections,
72 Span<Span<Result<FSDKError>>> errors) const noexcept = 0;
73
85 virtual Result<FSDKError> detectLandmarks5(
86 const Image& image,
87 Span<const Detection> detections,
88 Span<Landmarks5> landmarks) const noexcept = 0;
89
101 virtual Result<FSDKError> detectLandmarks68(
102 const Image& image,
103 Span<const Detection> detections,
104 Span<Landmarks68> landmarks) const noexcept = 0;
105
117 virtual Result<FSDKError>
118 validate(
119 const Image& images,
120 Span<const Detection> detections,
121 Span<Result<FSDKError>> errors) const noexcept = 0;
122 };
125 }
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:59
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Types.h
Common data types and structures.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
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:23
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:25
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::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14