Face Engine SDK  5.34.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 #include <fsdk/vlc/future.h>
8 
9 namespace fsdk {
10 
11 #ifndef DOXYGEN_SHOULD_SKIP_THIS
12  DECLARE_SMARTPTR(IHeadDetector);
13 #endif
14 
16 
28  detect(Span<const Image> images, Span<const Rect> rects) noexcept = 0;
29 
42  Span<const Image> images,
43  Span<const Rect> rects,
44  Span<Result<FSDKError>> outErrors) const noexcept = 0;
45 
49  using HeadBatchFuture = vlc::future<IDetectionBatchPtr>;
50 
62  virtual HeadBatchFuture detectAsync(Span<const Image> images, Span<const Rect> rects) const = 0;
63  };
64 
67 } // namespace fsdk
vlc::future< IDetectionBatchPtr > HeadBatchFuture
Common aliases for IHeadDetector asynchronous interface.
Definition: IHeadDetector.h:49
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:70
SDK namespace.
Definition: IAGSEstimator.h:8
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Common data types and structures.
virtual ResultValue< FSDKError, IDetectionBatchPtr > detect(Span< const Image > images, Span< const Rect > rects) noexcept=0
Detects heads on multiple images.
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.
Object system types and interfaces.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
Definition: IHeadDetector.h:15
virtual HeadBatchFuture detectAsync(Span< const Image > images, Span< const Rect > rects) const =0
Asynchronously detects heads on multiple images.
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14