15 #include "IResultBatch.h"
21 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74 {
return static_cast<DetectionType>(
static_cast<int>(a) | static_cast<int>(b)); }
103 typedef std::function<bool(const Image& img, const BaseDetection<float>&,
const BaseDetection<float>&)> Function;
107 {
return func(img, a, b); }
129 int detectionPerImageNum,
196 "\tconst Span<Face>& faces,\n"
197 "\tDetectionType type,\n"
198 "\tconst Span<Result<FSDKError>>& outErrors) call.\n")
251 uint32_t detectionPerImageNum,
261 redetectOne(
Human& human)
const noexcept = 0;
Get all supported parameters.
Definition: IDetector.h:82
Syntax sugar, allows you to use lambdas to define a BestDetection comparer.
Definition: IDetector.h:101
Detector type 2.
Definition: IDetector.h:47
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
BestDetection - most centered detection.
Definition: IDetector.h:57
Default detector cpecified in config file;.
Definition: IDetector.h:45
Common data types and structures.
virtual fsdk::ResultValue< fsdk::FSDKError, fsdk::OrientationType > estimateOrientation(const Image &image) noexcept=0
Estimate orientation of all image (Normal, Right90deg, Left90deg or UpsideDown).
IR image processing mode.
Definition: IDetector.h:32
virtual void setCustomDetectionComparer(const IDetectionComparer *comparer) noexcept=0
Set custom detection comparer object.
Detector type 3.
Definition: IDetector.h:48
Object system types and interfaces.
Get bounding boxes of faces.
Definition: IDetector.h:67
DetectionComparerType
Strategy of BestDetections comparer.
Definition: IDetector.h:55
Detector type count.
Definition: IDetector.h:49
Base strong reference counted object interface.
Definition: IRefCounted.h:36
human body detector interface.
Definition: IDetector.h:237
virtual ResultValue< FSDKError, Ref< IResultBatch< Face > > > detect(const Span< const Image > images, const Span< const Rect > rectangles, int detectionPerImageNum, DetectionType type=dtBBox) noexcept=0
Detect faces and landmarks on multiple images.
face detector interface.
Definition: IDetector.h:115
Detector type 1.
Definition: IDetector.h:46
Get bounding boxes and 68 facial landmarks.
Definition: IDetector.h:69
bestDetection - the largest detection
Definition: IDetector.h:59
Get all supported parameters.
Definition: IDetector.h:70
Interface of BestDetection comparer. Implement it if you want to use own BestDetection strategy...
Definition: IDetector.h:92
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
Get 17 keypoints of human, with score for each one.
Definition: IDetector.h:81
Get bounding boxes of human bodies.
Definition: IDetector.h:80
virtual ResultValue< FSDKError, Face > detectOne(const Image &image, const Rect &rect, DetectionType type=dtBBox) noexcept=0
Light function to get just one best detection from single input image.
Image.
Definition: Image.h:37
virtual ResultValue< FSDKError, bool > redetectOne(Face &face, DetectionType type=dtBBox) noexcept=0
bestDetection - most centered with high score
Definition: IDetector.h:58
Get bounding boxes and 5 facial landmarks.
Definition: IDetector.h:68
virtual Result< FSDKError > redetect(const fsdk::Span< fsdk::Face > &faces, fsdk::DetectionType type, const fsdk::Span< fsdk::Result< fsdk::FSDKError >> &outErrors) noexcept=0
Batched redetect faces.
virtual void setDetectionComparer(DetectionComparerType comparerType) noexcept=0
Set detection comparer from SDK defined list.
virtual Result< FSDKError > FSDK_DEPRECATED("This call is deprecated since v.3.9.3. Consider ""redetect(\n""\tconst Span<Face>& faces,\n""\tDetectionType type,\n""\tconst Span<Result<FSDKError>>& outErrors) call.\n") redetect(const Span< Face > &faces
Batched redetect faces.
ObjectDetectorClassType
Object detector type enumeration.
Definition: IDetector.h:44
DetectionType
Detection type enumeration.
Definition: IDetector.h:66
RecognitionMode
Recognition mode structure. Determines which recognition mode to use.
Definition: IDetector.h:30
HumanDetectionType
Human detection type enumeration.
Definition: IDetector.h:79
BestDetection - detections with highest score.
Definition: IDetector.h:56
RGB image processing mode.
Definition: IDetector.h:31
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
Face detection. Stores a detected face bounding box within a source image frame as well as detection...
Definition: Detection.h:10