Face Engine SDK
5.25.0
A face detection, recognition and tracking engine.
|
face detector interface. More...
#include <IDetector.h>
Public Member Functions | |
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. | |
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. | |
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 ResultValue< FSDKError, Ref< IFaceDetectionBatch > > | redetect (Span< const Image > images, Span< Span< const Detection >> detections, DetectionType type=DT_BBOX) noexcept=0 |
Batched redetect faces on multiple images. based on the detection results for the previous frames. | |
virtual ResultValue< FSDKError, Face > | redetectOne (const Image &image, const Detection &detection, DetectionType type=DT_BBOX) noexcept=0 |
Redetect face. | |
virtual void | setDetectionComparer (DetectionComparerType comparerType) noexcept=0 |
Set detection comparer from SDK defined list. | |
virtual void | setCustomDetectionComparer (const IDetectionComparer *comparer) noexcept=0 |
Set custom detection comparer object. | |
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. | |
virtual Result< FSDKError > | validate (Span< const Image > images, Span< const Rect > rects, uint32_t detectionPerImageNum, Span< Result< FSDKError >> outErrors) const noexcept=0 |
Validate input of multiple frames in a single function call. | |
virtual Result< FSDKError > | validate (Span< const Image > images, Ref< IFaceDetectionBatch > detectionBatch, Span< Result< FSDKError >> outErrors) const noexcept=0 |
Validate input of multiple frames in a single function call. | |
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. | |
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 frames. |
face detector interface.
virtual ResultValue<FSDKError, Ref<IFaceDetectionBatch> > fsdk::IDetector::detect | ( | Span< const Image > | images, |
Span< const Rect > | ROIs, | ||
uint32_t | perImageNum, | ||
DetectionType | type = DT_BBOX |
||
) | [pure virtual] |
Detect faces and their parameters on multiple images.
[in] | images | span of source images. |
[in] | rectangles | input rectangles of interest (ROI) span. |
[in] | perImageNum | the max number of detections per input image. |
[in] | type | type of the detection. |
virtual FaceBatchFuture fsdk::IDetector::detectAsync | ( | Span< const Image > | images, |
Span< const Rect > | rectangles, | ||
uint32_t | perImageNum, | ||
DetectionType | type = DT_BBOX |
||
) | const [pure virtual] |
Asynchronously detect faces and their parameters on multiple images.
[in] | images | span of source images. |
[in] | rectangles | input rectangles of interest (ROI) span. |
[in] | perImageNum | the max number of detections per input image. |
[in] | type | type of the detection. |
virtual ResultValue<FSDKError, Face> fsdk::IDetector::detectOne | ( | const Image & | image, |
const Rect & | rect, | ||
DetectionType | type = DT_BBOX |
||
) | [pure virtual] |
Light function to get just one best detection from single input image.
[in] | image | source image. |
[in] | rect | rectangle of interest in the image. |
[in] | type | type of detection: BBox, 5landmarks or 68landmarks. |
virtual ResultValue<FSDKError, Ref<IFaceDetectionBatch> > fsdk::IDetector::redetect | ( | Span< const Image > | images, |
Ref< IFaceDetectionBatch > | detectionBatch, | ||
DetectionType | type = DT_BBOX |
||
) | [pure virtual] |
Batched redetect faces on multiple images. based on the detection results for the previous frames.
[in] | images | span of source images. |
[in] | detectionBatch | result of detection on the previous frames - Ref with an IFaceDetectionBatch object. |
[in] | type | type of redetection. |
virtual ResultValue<FSDKError, Ref<IFaceDetectionBatch> > fsdk::IDetector::redetect | ( | Span< const Image > | images, |
Span< Span< const Detection >> | detections, | ||
DetectionType | type = DT_BBOX |
||
) | [pure virtual] |
Batched redetect faces on multiple images. based on the detection results for the previous frames.
[in] | images | span of source images. |
[in] | detections | span of detection coordinates in corresponding source images space from the previous frames. It is a two dimensional Span. There is one Span of the rectangles for each image. |
[in] | type | type of redetection. |
virtual FaceBatchFuture fsdk::IDetector::redetectAsync | ( | Span< const Image > | images, |
IFaceDetectionBatchPtr | detectionBatch, | ||
DetectionType | type = DT_BBOX |
||
) | const [pure virtual] |
Asynchronously redetect faces on multiple images. based on the detection results for the previous frames.
[in] | images | span of source images. |
[in] | detectionBatch | result of detection on the previous frames - Ref with an IFaceDetectionBatch object. |
[in] | type | type of redetection. |
virtual ResultValue<FSDKError, Face> fsdk::IDetector::redetectOne | ( | const Image & | image, |
const Detection & | detection, | ||
DetectionType | type = DT_BBOX |
||
) | [pure virtual] |
Redetect face.
[in] | image | source image. Format must be R8G8B8. |
[in] | detection | detection coordinates in image space from the previous frame to make redetect. |
[in] | type | type of detection: BBox, 5landmarks or 68landmarks. |
virtual void fsdk::IDetector::setCustomDetectionComparer | ( | const IDetectionComparer * | comparer | ) | [pure virtual] |
Set custom detection comparer object.
[in] | comparer | pointer to user defined comparer object. |
virtual void fsdk::IDetector::setDetectionComparer | ( | DetectionComparerType | comparerType | ) | [pure virtual] |
Set detection comparer from SDK defined list.
[in] | comparerType | type of the comparer for detections. |
virtual Result<FSDKError> fsdk::IDetector::validate | ( | Span< const Image > | images, |
Span< Span< const Detection >> | detections, | ||
Span< Span< Result< FSDKError >>> | errors | ||
) | const [pure virtual] |
Validate input of multiple frames in a single function call.
[in] | images | span of source images. |
[in] | detections | span of detection coordinates in corresponding source images space from the previous frames. It is a two dimensional Span. There is one Span of Detections for each image. |
[out] | errors | output span of errors for each image. It is a two dimensional Span. There is one Span of the errors for each image. |
virtual Result<FSDKError> fsdk::IDetector::validate | ( | Span< const Image > | images, |
Span< const Rect > | rects, | ||
uint32_t | detectionPerImageNum, | ||
Span< Result< FSDKError >> | outErrors | ||
) | const [pure virtual] |
Validate input of multiple frames in a single function call.
[in] | images | span of source images. |
[in] | rects | span of rectangle coordinates of corresponding source images. |
[in] | detectionPerImageNum | max number of detections per input image. |
[out] | errors | output span of errors for each image. |
virtual Result<FSDKError> fsdk::IDetector::validate | ( | Span< const Image > | images, |
Ref< IFaceDetectionBatch > | detectionBatch, | ||
Span< Result< FSDKError >> | outErrors | ||
) | const [pure virtual] |
Validate input of multiple frames in a single function call.
[in] | images | span of source images. |
[in] | detectionBatch | result of detection on the previous frames - Ref with an IFaceDetectionBatch object. |
[out] | errors | output span of errors for each image. |