18 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 :
distance(std::numeric_limits<
float>::infinity())
119 virtual bool getDescriptor(uint8_t* buffer)
const noexcept = 0;
125 virtual void setDescriptor(
const uint8_t* buffer) noexcept = 0;
236 virtual uint32_t
getCount() const noexcept = 0;
296 default:
return "Unknown error";
319 extractFromWarpedImage(
341 extractFromWarpedImageBatch(
363 extractFromWarpedImageBatch(
virtual uint32_t getModelVersion() const noexcept=0
Get algorithm model version this descriptor was created with.
DescriptorVersion
Minimum descriptor model version. Determines which minimum version of descriptor to use...
Definition: IDescriptor.h:72
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.
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:144
virtual ResultValue< FSDKError, IDescriptorPtr > getDescriptorFast(uint32_t index) noexcept=0
Get descriptor from batch by index without copying.
precise human descriptor, heavy and slow.
Definition: IDescriptor.h:83
HumanDescriptorVersion
Human descriptor model versions. Determines which version of human descriptor to use.
Definition: IDescriptor.h:81
Descriptor batch interface.
Definition: IDescriptor.h:139
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.
human descriptor for tracking of people, light and fast version.
Definition: IDescriptor.h:82
Base strong reference counted object interface.
Definition: IRefCounted.h:36
virtual Result< Error > removeFast(uint32_t index) noexcept=0
Remove a descriptor from batch.
virtual uint32_t getMaxCount() const noexcept=0
Get maximum number of descriptors in this batch.
Descriptor matcher interface.
Definition: IDescriptor.h:438
virtual void setDescriptor(const uint8_t *buffer) noexcept=0
Copy descriptor from user providedbuffer.
human descriptor.
Definition: IDescriptor.h:65
virtual DescriptorType getDescriptorType() const noexcept=0
Get type of descriptor.
Error while accessing descriptor out of range.
float similarity
similarity (normalized in [0..1] range).
Definition: IDescriptor.h:36
virtual ResultValue< FSDKError, IDescriptorPtr > getDescriptorSlow(uint32_t index) const noexcept=0
Get descriptor from batch by index with copying.
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:25
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 getDescriptorLength() const noexcept=0
Get length of one descriptor. Specified by version of descriptors in batch.
virtual uint32_t getCount() const noexcept=0
Get actual number of descriptors in this batch.
MatchingResult(void) noexcept
Initializes result to default values.
Definition: IDescriptor.h:41
virtual Result< Error > removeSlow(uint32_t index) noexcept=0
Remove a descriptor from batch.
Image.
Definition: Image.h:38
Result of descriptor matching.
Definition: IDescriptor.h:34
Descriptor interface.
Definition: IDescriptor.h:91
Data storage object interface helper.
Definition: IObject.h:157
face descriptor.
Definition: IDescriptor.h:73
regular human descriptor.
Definition: IDescriptor.h:84
Error while trying open/read/write file.
Archive interface.
Definition: IObject.h:37
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
human descriptor.
Definition: IDescriptor.h:74
float distance
distance between descriptor vectors.
Definition: IDescriptor.h:35
DescriptorType
Descriptor type enum. Determines which type of descriptor to use.
Definition: IDescriptor.h:63
Invalid input (Ex: null pointer while a valid object is expected).
MatchingResult(float distance, float similarity) noexcept
Initializes result.
Definition: IDescriptor.h:51
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
face descriptor.
Definition: IDescriptor.h:64
virtual DescriptorType getDescriptorType() const noexcept=0
Get type of descriptor.