Face Engine SDK  5.14.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IHumanFaceBatch.h
1 #pragma once
2 
3 #include <fsdk/IRefCounted.h>
4 #include <fsdk/Types/Detection.h>
5 #include <fsdk/Types/Ref.h>
6 #include <fsdk/Types/Span.h>
7 
8 #include <cstddef>
9 
10 namespace fsdk {
11 
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
13  DECLARE_SMARTPTR(IHumanFaceBatch);
14 #endif
15 
23  uint32_t humanId;
24  uint32_t faceId;
25  float score;
26  };
27 
31  struct IHumanFaceBatch : public IRefCounted {
36  virtual size_t getSize() const noexcept = 0;
37 
47  virtual Span<const Detection> getHumanDetections(size_t index = 0) const noexcept = 0;
48 
58  virtual Span<const Detection> getFaceDetections(size_t index = 0) const noexcept = 0;
59 
71  virtual Span<const HumanFaceAssociation> getAssociations(size_t index = 0) const noexcept = 0;
72  };
73 
74 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
virtual Span< const Detection > getFaceDetections(size_t index=0) const noexcept=0
Returns face detections Span.
virtual size_t getSize() const noexcept=0
Returns size.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
HumanFace result batch interface.
Definition: IHumanFaceBatch.h:31
virtual Span< const Detection > getHumanDetections(size_t index=0) const noexcept=0
Returns human detections Span.
Type for human and face association.
Definition: IHumanFaceBatch.h:22
virtual Span< const HumanFaceAssociation > getAssociations(size_t index=0) const noexcept=0
Returns human and face associations Span. Each element of this Span is a pair of indexes from corresp...
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.