Face Engine SDK  5.11.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IHumanFaceDetector.h
1 #pragma once
2 
3 #include "FSDKError.h"
4 #include "IHumanFaceBatch.h"
5 
6 #include <fsdk/IRefCounted.h>
7 #include <fsdk/Types/Detection.h>
8 #include <fsdk/Types/Image.h>
9 #include <fsdk/Types/Ref.h>
10 #include <fsdk/Types/ResultValue.h>
11 #include <fsdk/Types/Span.h>
12 
13 namespace fsdk {
14 
15 #ifndef DOXYGEN_SHOULD_SKIP_THIS
16  DECLARE_SMARTPTR(IHumanFaceDetector);
17 #endif
18 
29 
41  detect(
42  Span<const Image> images,
43  Span<const Rect> rects) const noexcept = 0;
44 
56  virtual Result<FSDKError>
57  validate(
58  Span<const Image> images,
59  Span<const Rect> rects,
60  Span<Result<FSDKError>> errors) const noexcept = 0;
61  };
62 
65 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
virtual Result< FSDKError > validate(Span< const Image > images, Span< const Rect > rects, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
virtual ResultValue< FSDKError, Ref< IHumanFaceBatch > > detect(Span< const Image > images, Span< const Rect > rects) const noexcept=0
Batched detect of faces and human bodies.
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:25
Human and face detector interface.
Definition: IHumanFaceDetector.h:28
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
Reference counted object interface.