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

Loading...
Searching...
No Matches
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
37 virtual ResultValue<FSDKError, Ref<IFaceLandmarksBatch>>
38 detectLandmarks5(Span<const Image> images, Span<Span<const Detection>> detections) const noexcept = 0;
39
52 virtual ResultValue<FSDKError, Ref<IFaceLandmarksBatch>>
53 detectLandmarks68(Span<const Image> images, Span<Span<const Detection>> detections) const noexcept = 0;
54
68 virtual Result<FSDKError> validate(
69 Span<const Image> images,
70 Span<Span<const Detection>> detections,
71 Span<Span<Result<FSDKError>>> errors) const noexcept = 0;
72
85 virtual Result<FSDKError> detectLandmarks5(
86 const Image& image,
87 Span<const Detection> detections,
88 Span<Landmarks5> landmarks) const noexcept = 0;
89
102 virtual Result<FSDKError> detectLandmarks68(
103 const Image& image,
104 Span<const Detection> detections,
105 Span<Landmarks68> landmarks) const noexcept = 0;
106
118 virtual Result<FSDKError> validate(
119 const Image& images,
120 Span<const Detection> detections,
121 Span<Result<FSDKError>> errors) const noexcept = 0;
122
136 virtual Result<FSDKError> validate(
137 Span<const Image> images,
138 Span<Span<const Detection>> detections,
139 DetectionType detectionType,
140 Span<Span<Result<FSDKError>>> errors) const noexcept = 0;
141
145 using FaceLandmarksBatchFuture = vlc::future<IFaceLandmarksBatchPtr>;
146
161 virtual FaceLandmarksBatchFuture detectLandmarksAsync(
162 Span<const Image> images,
163 Span<Span<const Detection>> detections,
164 DetectionType detectionType) const = 0;
165 };
166
169} // namespace fsdk
fsdk::Span
Span. @detail Not owning data view. It incapsulated pointer to the continuous array with one or more ...
Definition Span.h:14
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition Def.h:56
fsdk::DetectionType
DetectionType
Detection type enumeration.
Definition IDetector.h:58
fsdk
SDK namespace.
Definition IAGSEstimator.h:8
fsdk::IFaceLandmarksDetector
Definition IFaceLandmarksDetector.h:23
fsdk::IFaceLandmarksDetector::validate
virtual Result< FSDKError > validate(Span< const Image > images, Span< Span< const Detection > > detections, DetectionType detectionType, Span< Span< Result< FSDKError > > > errors) const noexcept=0
Validates frames, detections, detectionType in a single function call.
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.
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::validate
virtual Result< FSDKError > validate(const Image &images, Span< const Detection > detections, Span< Result< FSDKError > > errors) const noexcept=0
Validates input of frame and detections in a single function call.
fsdk::IFaceLandmarksDetector::FaceLandmarksBatchFuture
vlc::future< IFaceLandmarksBatchPtr > FaceLandmarksBatchFuture
Common alias for IFaceLandmarksDetector asynchronous interface.
Definition IFaceLandmarksDetector.h:145
fsdk::IFaceLandmarksDetector::detectLandmarks68
virtual Result< FSDKError > detectLandmarks68(const Image &image, Span< const Detection > detections, Span< Landmarks68 > landmarks) const noexcept=0
Detects landmarks68 in a photo.
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.
fsdk::IFaceLandmarksDetector::detectLandmarks5
virtual Result< FSDKError > detectLandmarks5(const Image &image, Span< const Detection > detections, Span< Landmarks5 > landmarks) const noexcept=0
Detects landmarks5 in a photo.
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::IRefCounted
Base strong reference counted object interface.
Definition IRefCounted.h:37
fsdk::Image
Image.
Definition Image.h:38
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition Result.h:27
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types.
Definition ResultValue.h:21