Enrollment 28.2.0
Loading...
Searching...
No Matches

ExtractedFace is ICF Template created by FaceExtractor with Face that was extracted. More...

#include <Face.h>

Collaboration diagram for ExtractedFace:

Public Member Functions

void WriteTo (Writer &writer) const final
 Function serializes ExtractedFace via provided Writer.
FaceSimilarityScore SimilarWith (const FaceTemplate &gallery) const
 Calculates FaceSimilarityScore for given FaceTemplate.
std::string GetVersion () const
 Provides version information of Innovatrics proprietary algorithm used to create the face template.

Static Public Member Functions

static std::vector< std::shared_ptr< FaceTemplate > > ToTemplates (const std::vector< std::shared_ptr< ExtractedFace > > &faces)
 Converts a vector of ExtractedFace objects into a vector of FaceTemplate objects.

Public Attributes

const std::shared_ptr< Face > face
 Face that is used to template extraction.
const std::vector< uint8_t > data
 Template data.

Friends

class Face

Detailed Description

ExtractedFace is ICF Template created by FaceExtractor with Face that was extracted.

The template can be used later for verification.

Member Function Documentation

◆ GetVersion()

std::string GetVersion ( ) const
inlinenodiscardinherited

Provides version information of Innovatrics proprietary algorithm used to create the face template.

Returns
version string

References data.

◆ SimilarWith()

FaceSimilarityScore SimilarWith ( const FaceTemplate & gallery) const
inlinenodiscardinherited

Calculates FaceSimilarityScore for given FaceTemplate.

Parameters
galleryFaceTemplate for score calculation
Returns
FaceSimilarityScore
Exceptions
EnrollmentExceptionwhen it is not possible to match templates

References data, and FaceTemplate().

Here is the call graph for this function:

◆ ToTemplates()

std::vector< std::shared_ptr< FaceTemplate > > ToTemplates ( const std::vector< std::shared_ptr< ExtractedFace > > & faces)
inlinestatic

Converts a vector of ExtractedFace objects into a vector of FaceTemplate objects.

This function takes a vector of ExtractedFace objects and converts each element into an FaceTemplate object, then returns a vector of FaceTemplate objects.

Parameters
facesA vector of ExtractedFace objects to be converted.
Returns
A vector of FaceTemplate objects converted from the ExtractedFace objects.

Referenced by Applicant::ToICSTemplate(), and Applicant::ToTemplate().

Here is the caller graph for this function:

◆ WriteTo()

void WriteTo ( Writer & writer) const
inlinefinalvirtual

Function serializes ExtractedFace via provided Writer.

Parameters
writerused to serialize Face.

Implements Serializable.

References face, Writer::Write(), and FaceTemplate::WriteTo().

Here is the call graph for this function:

The documentation for this class was generated from the following file: