18 #ifndef DOXYGEN_SHOULD_SKIP_THIS
43 :
distance(std::numeric_limits<
float>::infinity())
110 virtual bool getDescriptor(uint8_t* buffer)
const noexcept = 0;
116 virtual void setDescriptor(
const uint8_t* buffer) noexcept = 0;
224 virtual uint32_t
getCount() const noexcept = 0;
282 default:
return "Unknown error";
309 FSDK_DEPRECATED(
"IDescriptorExtractor::extract is deprecated. Use IDescriptorExtractor::extractFromWarpedImage method")
310 extract(
Image& image,
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;
virtual uint32_t getModelVersion() const noexcept=0
Get algorithm model version this descriptor was created with.
DesctiptorType
Descriptor type enum. Determines which type of descriptor to use.
Definition: IDescriptor.h:64
DescriptorVersion
Minimum descriptor model version. Determines which minimum version of descriptor to use...
Definition: IDescriptor.h:73
virtual bool getDescriptor(uint8_t *buffer) const noexcept=0
Copy descriptor data to user provided buffer.
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
An internal processing error (Ex: memopry allocation or misalignment).
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
Face landmarks template structure.
Definition: Landmarks.h:18
An error structure designed for functions which can return errors from different enum classes...
Definition: MultiError.h:17
Error
Descriptor batch error enumeration.
Definition: IDescriptor.h:136
virtual uint32_t getDescriptorSize() const noexcept=0
Get length of one descriptor. Specified by version of descriptors in batch.
Descriptor batch interface.
Definition: IDescriptor.h:130
virtual IDescriptor * getDescriptorSlow(uint32_t index) const noexcept=0
Create descriptor from batch by index with copying.
Object system types and interfaces.
virtual Result< MultiError< ISerializableObject::Error, Error > > loadAndAdd(IArchive *archive)=0
Load a descriptor/descriptors from archive and add it to the batch.
virtual uint32_t getDescriptorLength() const noexcept=0
return size of descriptor in bytes.
Serializable object interface.
Definition: IObject.h:68
virtual Result< Error > add(IDescriptor *descriptor) noexcept=0
Add a descriptor to the batch.
Trying to add an incompatible descriptor.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
virtual uint32_t getMaxCount() const noexcept=0
Get maximum number of descriptors in this batch.
Descriptor matcher interface.
Definition: IDescriptor.h:407
face descriptor
Definition: IDescriptor.h:65
virtual void setDescriptor(const uint8_t *buffer) noexcept=0
Copy descriptor from user providedbuffer.
Error while accessing descriptor out of range.
float similarity
similarity (normalized in [0..1] range).
Definition: IDescriptor.h:37
virtual DesctiptorType getDescriptorType() const noexcept=0
Get type of descriptor.
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
Face detector interfaces.
virtual uint32_t getModelVersion() const noexcept=0
Get algorithm model version the descriptors in this batch were created with.
virtual uint32_t getCount() const noexcept=0
Get actual number of descriptors in this batch.
human descriptor
Definition: IDescriptor.h:66
MatchingResult(void) noexcept
Initializes result to default values.
Definition: IDescriptor.h:42
Image.
Definition: Image.h:37
Result of descriptor matching.
Definition: IDescriptor.h:34
virtual IDescriptor * getDescriptorFast(uint32_t index) noexcept=0
Create descriptor from batch by index without copying.
virtual DesctiptorType getDescriptorType() const noexcept=0
Get type of descriptor.
Descriptor interface.
Definition: IDescriptor.h:82
Data storage object interface helper.
Definition: IObject.h:157
face descriptor
Definition: IDescriptor.h:74
virtual Result< Error > removeSlow(int index) noexcept=0
Remove a descriptor from batch.
Error while trying open/read/write file.
Archive interface.
Definition: IObject.h:37
virtual Result< Error > removeFast(int index) noexcept=0
Remove a descriptor from batch.
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
human descriptor
Definition: IDescriptor.h:75
float distance
distance between descriptor vectors.
Definition: IDescriptor.h:36
Invalid input (Ex: null pointer while a valid objects is expected).
MatchingResult(float distance, float similarity) noexcept
Initializes result.
Definition: IDescriptor.h:52
Face detection. Stores a detected face bounding box within a source image frame as well as detection...
Definition: Detection.h:10