Face SDK  1.13.0 Mozart release
Face Recognition Software Development Kit
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
com.tech5.FaceSDK.Fir Class Reference
Inheritance diagram for com.tech5.FaceSDK.Fir:

Public Member Functions

int version ()
 
boolean isShort ()
 
boolean isBinary ()
 
boolean equals (Object o)
 
int hashCode ()
 
void close () throws Exception
 

Static Public Member Functions

static Fir convertToShortFir (Fir longFir) throws FaceSDKException
 

Protected Member Functions

void finalize () throws Throwable
 

Detailed Description

The FIR object. FIR - Face Identification Record, biometric template.

FIR can be long (float[]), short (byte[]) or binary (byte[]). Binary FIRs are supported only for Builder version 211.
Generally you don't have to care about type of FIR, but it's important when implementing custom FIRs matching or custom FIR serialization.

See also
PureFirExtractor.
Builder can extract long, short or binary depending on flag (produceLongFir) passed into Builder ctor. By default Builder extracts short (or binary if Builder version is 211) FIRs.
FirMatcher and FirList work with all types of FIR, but internally a copy of FIR will be converted from long to short (or to binary if FIR version is 211).
Serializer doesn't convert FIR during serialization/deserialization.

Member Function Documentation

◆ convertToShortFir()

static Fir com.tech5.FaceSDK.Fir.convertToShortFir ( Fir  longFir) throws FaceSDKException
inlinestatic

Converts long fir to short (or binary if longFir version is 211).

Parameters
longFirthe long FIR to be converted to short
Returns
converted FIR
Exceptions
FaceSDKExceptionin case of an error in native code.
IllegalArgumentExceptionif longFir is null.

◆ isBinary()

boolean com.tech5.FaceSDK.Fir.isBinary ( )
inline
Returns
true if FIR is binary

◆ isShort()

boolean com.tech5.FaceSDK.Fir.isShort ( )
inline
Returns
true if FIR is short

◆ version()

int com.tech5.FaceSDK.Fir.version ( )
inline
Returns
version of Builder which extract the FIR

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