Face Engine SDK
4.6.0
A face detection, recognition and tracking engine.
|
Descriptor extractor interface. More...
#include <IDescriptor.h>
Public Member Functions | |
virtual ResultValue< FSDKError, float > | extract (Image &image, const Detection &detection, const Landmarks5 &landmarks, IDescriptor *descriptor) const noexcept=0 |
Extract a face descriptor from an image. More... | |
virtual ResultValue< FSDKError, float > | extractFromWarpedImage (const Image &image, IDescriptor *descriptor) const noexcept=0 |
Extract descriptor from a warped image. More... | |
virtual ResultValue< FSDKError, float > | extractFromWarpedImageBatch (const Image *warpsBatch, IDescriptorBatch *descriptorBatch, IDescriptor *aggregation, float *garbageScoreBatch, int batchSize) const noexcept=0 |
Extract batch of descriptors from a batch of images and perform aggregation. More... | |
virtual Result< FSDKError > | extractFromWarpedImageBatch (const Image *warpsBatch, IDescriptorBatch *descriptorBatch, float *garbageScoreBatch, int batchSize) const noexcept=0 |
Extract batch of descriptors from a batch of images. More... | |
virtual uint32_t | getModelVersion () const noexcept=0 |
Get algorithm model version this extractor works with. More... | |
virtual DesctiptorType | getDescriptorType () const noexcept=0 |
Get type of descriptor this extractor works with. More... | |
Public Member Functions inherited from fsdk::IRefCounted | |
virtual int32_t | retain () noexcept=0 |
Increase strong reference count. More... | |
virtual int32_t | release () noexcept=0 |
Decrease strong reference count. More... | |
virtual int32_t | getRefCount () const noexcept=0 |
Get actual strong reference count. More... | |
virtual int32_t | retainWeak () noexcept=0 |
Increase weak reference count. More... | |
virtual int32_t | releaseWeak () noexcept=0 |
Decrease weak reference count. More... | |
virtual int32_t | getWeakRefCount () const noexcept=0 |
Get actual weak reference count. More... | |
Descriptor extractor interface.
Extracts face descriptors from images. The descriptors can be later used for face matching.
|
pure virtualnoexcept |
Extract a face descriptor from an image.
This method accepts arbitrary images that have size at least 250x250 pixels and R8G8B8 pixel format. The input image is warped internally using an assigned warper (
defaultWarper
flag upon extractor creation. This method can be used only for face descriptor extractor.image | source image. Format must be R8G8B8. |
detection | face detection. |
set | face feature set. |
descriptor | descriptor to fill with data. |
|
pure virtualnoexcept |
Extract descriptor from a warped image.
[in] | image | source warped image. |
image
should be a valid 250x250 image in R8G8B8 format for DT_FACE descriptor type. image
should be a valid 192x384 image in R8G8B8 format for DT_HUMAN descriptor type. [out] | descriptor | descriptor to fill with data. |
|
pure virtualnoexcept |
Extract batch of descriptors from a batch of images and perform aggregation.
[in] | warpsBatch | input array of warped images. |
[out] | descriptorBatch | descriptor batch to fill with data. |
[out] | aggregation | descriptor with aggregation based on descriptor batch. |
[out] | garbageScoreBatch | array of descriptor scores normalized in range [0, 1] 1 - face on the input warp; 0 - garbage on the input warp. |
[in] | batchSize | size of the batch. |
|
pure virtualnoexcept |
Extract batch of descriptors from a batch of images.
[in] | warpsBatch | input array of warped images. |
[out] | descriptorBatch | descriptor batch to fill with data. |
[out] | garbageScoreBatch | array of descriptor scores normalized in range [0, 1] 1 - face on the input warp; 0 - garbage on the input warp. DT_HUMAN descriptor does not support garbage score. In a case of DT_HUMAN descriptor, you'll get batch filled by 1.0. |
[in] | batchSize | size of the batch. |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
Get algorithm model version this extractor works with.