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

IHeadDetector.h
1 #pragma once
2
3 #include <fsdk/FSDKError.h>
4 #include <fsdk/IObject.h>
5 #include <fsdk/Types.h>
6 #include <fsdk/IDetectionBatch.h>
7
8 namespace fsdk {
9
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11 DECLARE_SMARTPTR(IHeadDetector);
12 #endif
13
14 struct IHeadDetector : IRefCounted {
15
26 virtual ResultValue<FSDKError, IDetectionBatchPtr>
27 detect(Span<const Image> images, Span<const Rect> rects) noexcept = 0;
28
40 virtual Result<FSDKError> validate(
41 Span<const Image> images,
42 Span<const Rect> rects,
43 Span<Result<FSDKError>> outErrors) const noexcept = 0;
44
48 using HeadBatchFuture = vlc::future<IDetectionBatchPtr>;
49
61 virtual HeadBatchFuture detectAsync(Span<const Image> images, Span<const Rect> rects) const = 0;
62 };
63
66 } // namespace fsdk
fsdk::IHeadDetector::HeadBatchFuture
vlc::future< IDetectionBatchPtr > HeadBatchFuture
Common aliases for IHeadDetector asynchronous interface.
Definition: IHeadDetector.h:48
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
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::IHeadDetector::detect
virtual ResultValue< FSDKError, IDetectionBatchPtr > detect(Span< const Image > images, Span< const Rect > rects) noexcept=0
Detects heads on multiple images.
fsdk::IHeadDetector::validate
virtual Result< FSDKError > validate(Span< const Image > images, Span< const Rect > rects, Span< Result< FSDKError >> outErrors) const noexcept=0
Validates input of multiple frames in a single function call.
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::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
fsdk::IHeadDetector
Definition: IHeadDetector.h:14
fsdk::IHeadDetector::detectAsync
virtual HeadBatchFuture detectAsync(Span< const Image > images, Span< const Rect > rects) const =0
Asynchronously detects heads 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