 |
Face Engine SDK
4.7.0
A face detection, recognition and tracking engine.
|
Go to the documentation of this file.
18 #ifndef DOXYGEN_SHOULD_SKIP_THIS
43 :
distance(std::numeric_limits<float>::infinity())
218 virtual uint32_t getMaxCount() const noexcept = 0;
224 virtual uint32_t getCount() const noexcept = 0;
245 virtual uint32_t getDescriptorSize() const noexcept = 0;
252 virtual
IDescriptor* getDescriptorSlow(uint32_t index) const noexcept = 0;
260 virtual
IDescriptor* getDescriptorFast(uint32_t index) noexcept = 0;
282 default:
return "Unknown error";
309 FSDK_DEPRECATED(
"IDescriptorExtractor::extract is deprecated. Use IDescriptorExtractor::extractFromWarpedImage method")
328 extractFromWarpedImage(
351 extractFromWarpedImageBatch(
352 const
Image* warpsBatch,
355 float* garbageScoreBatch,
356 int batchSize) const noexcept = 0;
375 extractFromWarpedImageBatch(
376 const
Image* warpsBatch,
378 float* garbageScoreBatch,
379 int batchSize) const noexcept = 0;
Data storage object interface helper.
Definition: IObject.h:157
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
@ OutOfRange
Error while accessing descriptor out of range.
virtual uint32_t getModelVersion() const noexcept=0
Get algorithm model version this descriptor was created with.
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
@ IoError
Error while trying open/read/write file.
An error structure designed for functions which can return errors from different enum classes.
Definition: MultiError.h:17
virtual Result< Error > add(IDescriptorBatch *batch, uint32_t offset=0) noexcept=0
Add a descriptor batch content to the batch. Descriptors to copy from the source bath are selected ba...
virtual Result< FSDKError > match(const IDescriptor *reference, const IDescriptorBatch *candidates, MatchingResult *results) noexcept=0
Match descriptors 1:M.
Object system types and interfaces.
Descriptor batch interface.
Definition: IDescriptor.h:130
Descriptor matcher interface.
Definition: IDescriptor.h:407
virtual uint32_t getModelVersion() const noexcept=0
Get algorithm model version this matcher works with.
SDK namespace.
Definition: IAGSEstimator.h:8
virtual uint32_t getDescriptorLength() const noexcept=0
return size of descriptor in bytes.
Descriptor interface.
Definition: IDescriptor.h:82
Error
Serialization nerror codes.
Definition: IObject.h:73
MatchingResult(float distance, float similarity) noexcept
Initializes result.
Definition: IDescriptor.h:52
Result of descriptor matching.
Definition: IDescriptor.h:34
@ DT_FACE
face descriptor
Definition: IDescriptor.h:65
Serializable object interface.
Definition: IObject.h:68
@ InvalidInput
Invalid input (Ex: null pointer while a valid objects is expected).
virtual Result< Error > add(IDescriptor *descriptor) noexcept=0
Add a descriptor to the batch.
Face landmarks template structure.
Definition: Landmarks.h:18
@ Incompatible
Trying to add an incompatible descriptor.
@ Internal
An internal processing error (Ex: memopry allocation or misalignment).
virtual DesctiptorType getDescriptorType() const noexcept=0
Get type of descriptor.
Face detector interfaces.
Archive interface.
Definition: IObject.h:37
Common data types and structures.
@ DT_HUMAN
human descriptor
Definition: IDescriptor.h:66
virtual bool getDescriptor(uint8_t *buffer) const noexcept=0
Copy descriptor data to user provided buffer.
Error
Descriptor batch error enumeration.
Definition: IDescriptor.h:136
DescriptorVersion
Minimum descriptor model version. Determines which minimum version of descriptor to use.
Definition: IDescriptor.h:73
A structure that encapsulates an action result enumeration.
Definition: Result.h:30
float similarity
similarity (normalized in [0..1] range).
Definition: IDescriptor.h:37
@ DV_MIN_FACE_DESCRIPTOR_VERSION
face descriptor
Definition: IDescriptor.h:74
Image.
Definition: Image.h:38
virtual ResultValue< FSDKError, MatchingResult > match(const IDescriptor *first, const IDescriptor *second) noexcept=0
Match descriptors 1:1.
@ DV_MIN_HUMAN_DESCRIPTOR_VERSION
human descriptor
Definition: IDescriptor.h:75
DesctiptorType
Descriptor type enum. Determines which type of descriptor to use.
Definition: IDescriptor.h:64
virtual void setDescriptor(const uint8_t *buffer) noexcept=0
Copy descriptor from user providedbuffer.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
Face detection. @detail Stores a detected face bounding box within a source image frame as well as de...
Definition: Detection.h:10
float distance
distance between descriptor vectors.
Definition: IDescriptor.h:36
MatchingResult(void) noexcept
Initializes result to default values.
Definition: IDescriptor.h:42
@ BatchFull
Batch is full.
Addon for Result to output some value aside the result. Specialization for copiable types.
Definition: ResultValue.h:21