11 #include "IFaceDetectionBatch.h"
14 #include "Types/Face.h"
16 #include <fsdk/vlc/future.h>
22 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74 {
return static_cast<DetectionType>(
static_cast<int>(a) | static_cast<int>(b)); }
90 typedef std::function<bool(const Image& img, const Detection&, const Detection&)> Function;
94 {
return func(img, a, b); }
119 uint32_t perImageNum,
248 uint32_t detectionPerImageNum,
273 using FaceBatchFuture = vlc::future<IFaceDetectionBatchPtr>;
293 uint32_t perImageNum,
317 IFaceDetectionBatchPtr detectionBatch,
virtual ResultValue< FSDKError, Ref< IFaceDetectionBatch > > redetect(Span< const Image > images, Ref< IFaceDetectionBatch > detectionBatch, DetectionType type=DT_BBOX) noexcept=0
Batched redetect faces on multiple images. based on the detection results for the previous frames...
virtual Result< FSDKError > validate(Span< const Image > images, Span< Span< const Detection >> detections, Span< Span< Result< FSDKError >>> errors) const noexcept=0
Validate input of multiple frames in a single function call.
Syntax sugar, allows you to use lambdas to define a BestDetection comparer.
Definition: IDetector.h:88
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
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
virtual void setCustomDetectionComparer(const IDetectionComparer *comparer) noexcept=0
Set custom detection comparer object.
Detector type 3.
Definition: IDetector.h:48
Smart pointer for reference counted objects.
Definition: Ref.h:26
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
virtual ResultValue< FSDKError, Face > detectOne(const Image &image, const Rect &rect, DetectionType type=DT_BBOX) noexcept=0
Light function to get just one best detection from single input image.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
face detector interface.
Definition: IDetector.h:102
virtual ResultValue< FSDKError, Ref< IFaceDetectionBatch > > detect(Span< const Image > images, Span< const Rect > ROIs, uint32_t perImageNum, DetectionType type=DT_BBOX) noexcept=0
Detect faces and their parameters on multiple images.
Detector type 1.
Definition: IDetector.h:46
bestDetection - the largest detection.
Definition: IDetector.h:59
SensorType
Sensor type structure. Determines which type of camera sensor is used to perform face recognition...
Definition: IDetector.h:30
virtual FaceBatchFuture redetectAsync(Span< const Image > images, IFaceDetectionBatchPtr detectionBatch, DetectionType type=DT_BBOX) const =0
Asynchronously redetect faces on multiple images. based on the detection results for the previous fra...
Get all supported parameters.
Definition: IDetector.h:70
BestDetection - detections with highest score.
Definition: IDetector.h:56
Interface of BestDetection comparer. Implement it if you want to use own BestDetection strategy...
Definition: IDetector.h:79
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:25
Image.
Definition: Image.h:38
virtual void setDetectionComparer(DetectionComparerType comparerType) noexcept=0
Set detection comparer from SDK defined list.
virtual ResultValue< FSDKError, Face > redetectOne(const Image &image, const Detection &detection, DetectionType type=DT_BBOX) noexcept=0
Redetect face.
ObjectDetectorClassType
Object detector type enumeration.
Definition: IDetector.h:44
DetectionType
Detection type enumeration.
Definition: IDetector.h:66
Get bounding boxes and 5 facial landmarks.
Definition: IDetector.h:68
Get bounding boxes and 68 facial landmarks.
Definition: IDetector.h:69
virtual FaceBatchFuture detectAsync(Span< const Image > images, Span< const Rect > rectangles, uint32_t perImageNum, DetectionType type=DT_BBOX) const =0
Asynchronously detect faces and their parameters on multiple images.
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
bestDetection - most centered with high score.
Definition: IDetector.h:58