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

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
22 struct HumanFaceAssociation {
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
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::IHumanFaceBatch::getFaceDetections
virtual Span< const Detection > getFaceDetections(size_t index=0) const noexcept=0
Returns face detections Span.
fsdk::IHumanFaceBatch::getSize
virtual size_t getSize() const noexcept=0
Returns size.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::IHumanFaceBatch
HumanFace result batch interface.
Definition: IHumanFaceBatch.h:31
fsdk::IHumanFaceBatch::getHumanDetections
virtual Span< const Detection > getHumanDetections(size_t index=0) const noexcept=0
Returns human detections Span.
fsdk::HumanFaceAssociation
Type for human and face association.
Definition: IHumanFaceBatch.h:22
fsdk::IHumanFaceBatch::getAssociations
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...
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
IRefCounted.h
Reference counted object interface.