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
IHumanDetector.h
1 #pragma once
2 
3 #include <fsdk/FSDKError.h>
4 #include <fsdk/IHumanDetectionBatch.h>
5 #include <fsdk/IObject.h>
6 #include <fsdk/Types/Human.h>
7 
8 namespace fsdk {
9 
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11  DECLARE_SMARTPTR(IHumanDetector);
12 #endif
13 
23  HDT_BOX = 0,
24  HDT_POINTS = 1<<0,
25  HDT_ALL = 0xffff
26  };
27 
28  inline HumanDetectionType operator | (HumanDetectionType a, HumanDetectionType b) {
29  return static_cast<HumanDetectionType>(static_cast<int>(a) | static_cast<int>(b));
30  }
31 
49  detect(
50  Span<const Image> images,
51  Span<const Rect> rects,
52  uint32_t detectionPerImageNum,
53  HumanDetectionType type = HDT_BOX) const noexcept = 0;
54 
65  detectOne(
66  const Image& image,
67  const Rect& rect,
68  HumanDetectionType type = HDT_BOX) const noexcept = 0;
69 
81  const Image& image,
82  const Detection& detection,
83  HumanDetectionType type = HDT_BOX) const noexcept = 0;
84 
102  redetect(
103  Span<const Image> images,
104  Ref<IHumanDetectionBatch> detectionBatch,
105  HumanDetectionType type = HDT_BOX) const noexcept = 0;
106 
123  redetect(
124  Span<const Image> images,
125  Span<Span<const Detection>> detections,
126  HumanDetectionType type = HDT_BOX) const noexcept = 0;
127 
140  virtual Result<FSDKError>
141  validate(
142  Span<const Image> images,
143  Span<const Rect> rects,
144  uint32_t detectionPerImageNum,
145  Span<Result<FSDKError>> errors) const noexcept = 0;
146 
159  virtual Result<FSDKError> validate(
160  Span<const Image> images,
161  Ref<IHumanDetectionBatch> detectionBatch,
162  Span<Result<FSDKError>> errors) const noexcept = 0;
163 
177  virtual Result<FSDKError>
178  validate(
179  Span<const Image> images,
180  Span<Span<const Detection>> detections,
181  Span<Span<Result<FSDKError>>> errors) const noexcept = 0;
182 
183  };
184 
187 }
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
Get all supported parameters.
Definition: IHumanDetector.h:25
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
virtual Result< FSDKError > validate(Span< const Image > images, Span< const Rect > rects, uint32_t detectionPerImageNum, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
Smart pointer for reference counted objects.
Definition: Ref.h:26
Object system types and interfaces.
Common SDK error codes.
virtual ResultValue< FSDKError, IHumanDetectionBatchPtr > redetect(Span< const Image > images, Ref< IHumanDetectionBatch > detectionBatch, HumanDetectionType type=HDT_BOX) const noexcept=0
Batched redetect humans on multiple images based on the detection results for the previous frames...
Base strong reference counted object interface.
Definition: IRefCounted.h:36
human body detector interface.
Definition: IHumanDetector.h:35
Get bounding boxes of human bodies.
Definition: IHumanDetector.h:23
Get bounding boxes of human bodies with 17 scored keypoints.
Definition: IHumanDetector.h:24
virtual ResultValue< FSDKError, Human > redetectOne(const Image &image, const Detection &detection, HumanDetectionType type=HDT_BOX) const noexcept=0
redetect one person from input image.
virtual ResultValue< FSDKError, Ref< IHumanDetectionBatch > > detect(Span< const Image > images, Span< const Rect > rects, uint32_t detectionPerImageNum, HumanDetectionType type=HDT_BOX) const noexcept=0
Batched detect of human bodies.
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:25
Image.
Definition: Image.h:39
HumanDetectionType
Human detection type enumeration.
Definition: IHumanDetector.h:22
virtual ResultValue< FSDKError, Human > detectOne(const Image &image, const Rect &rect, HumanDetectionType type=HDT_BOX) const noexcept=0
Detect one person on input image.
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14