Face Engine SDK  5.21.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IHumanDetectionBatch.h
1 #pragma once
2 
3 #include <fsdk/IRefCounted.h>
4 #include <fsdk/Types/Detection.h>
5 #include <fsdk/Types/Human.h>
6 #include <fsdk/Types/Image.h>
7 #include <fsdk/Types/Ref.h>
8 #include <fsdk/Types/Span.h>
9 
10 #include <cstddef>
11 
12 namespace fsdk {
13 
14 #ifndef DOXYGEN_SHOULD_SKIP_THIS
15  DECLARE_SMARTPTR(IHumanDetectionBatch);
16 #endif
17 
25  virtual size_t getSize() const noexcept = 0;
26 
31  virtual size_t getSize(size_t imageIndex) const noexcept = 0;
32 
44  virtual Human getHuman(const Image& image, size_t imageIndex, size_t detectionIndex) const noexcept = 0;
45 
57  virtual Span<const Detection> getDetections(size_t index = 0) const noexcept = 0;
58  };
59 
60 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
Human detection result batch interface.
Definition: IHumanDetectionBatch.h:21
Base strong reference counted object interface.
Definition: IRefCounted.h:37
virtual Human getHuman(const Image &image, size_t imageIndex, size_t detectionIndex) const noexcept=0
Returns detected Human.
virtual Span< const Detection > getDetections(size_t index=0) const noexcept=0
Returns detection Span.
Definition: Human.h:9
Image.
Definition: Image.h:38
virtual size_t getSize() const noexcept=0
Returns size.
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.