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

Public Member Functions

byte [] serializeFace (Face face)
 
byte [] serializeFace (Face face, boolean serializeFullFrame)
 
Face deserializeFace (byte[] data) throws FaceSDKException
 
byte [] serializeAlignmentInfo (AlignmentInfo info)
 
AlignmentInfo deserializeAlignmentInfo (byte[] data) throws FaceSDKException
 
byte [] serializeFir (Fir fir)
 
Fir deserializeFir (byte[] data) throws FaceSDKException
 
boolean equals (Object o)
 
int hashCode ()
 
void close () throws Exception
 

Protected Member Functions

void finalize () throws Throwable
 

Detailed Description

The class allows serialize and deserialize Face, AlignmentInfo and Fir objects.

Member Function Documentation

◆ deserializeAlignmentInfo()

AlignmentInfo com.tech5.FaceSDK.Serializer.deserializeAlignmentInfo ( byte []  data) throws FaceSDKException
inline

Deserialize a AlignmentInfo object from binary data.

Parameters
dataserialized data using serializeAlignmentInfo(AlignmentInfo) function.
Returns
deseriazlied AlignmentInfo.
Exceptions
FaceSDKExceptionin case of corrupted input data.
IllegalArgumentExceptionif data is null or empty.

◆ deserializeFace()

Face com.tech5.FaceSDK.Serializer.deserializeFace ( byte []  data) throws FaceSDKException
inline

Deserialize a Face object from binary data.

Parameters
dataserialized data using serializeFace(Face) or serializeFace(Face, boolean) functions.
Returns
deseriazlied Face. The image of the object can be cropped if the object was serialized with serializeFullFrame=false.
Exceptions
FaceSDKExceptionin case of corrupted input data.
IllegalArgumentExceptionif data is null or empty.

◆ deserializeFir()

Fir com.tech5.FaceSDK.Serializer.deserializeFir ( byte []  data) throws FaceSDKException
inline

Deserialize a Fir object from binary data.

Parameters
dataSerialized data using Serializer.serializeFir() function.
Returns
deseriazlied Fir.
Exceptions
FaceSDKExceptionin case of corrupted input data.
IllegalArgumentExceptionif data is null or empty.

◆ serializeAlignmentInfo()

byte [] com.tech5.FaceSDK.Serializer.serializeAlignmentInfo ( AlignmentInfo  info)
inline

Serialize the AlignmentInfo object into binary data.

Parameters
infoThe object to serialize
Returns
serialized into byte[] object
Exceptions
IllegalArgumentExceptionif info is null.

◆ serializeFace() [1/2]

byte [] com.tech5.FaceSDK.Serializer.serializeFace ( Face  face)
inline

Serialize the Face object into binary data.

Parameters
facethe object to serialize
Returns
serialized into byte[] object
Exceptions
IllegalArgumentExceptionif face is null

◆ serializeFace() [2/2]

byte [] com.tech5.FaceSDK.Serializer.serializeFace ( Face  face,
boolean  serializeFullFrame 
)
inline

Serialize the Face object into binary data.

Parameters
facethe object to serialize
serializeFullFramestore a full face`s image (serializeFullFrame=true) or cropped to face rect image (serializeFullFrame=false).
Returns
serialized into byte[] object
Exceptions
IllegalArgumentExceptionif face is null

◆ serializeFir()

byte [] com.tech5.FaceSDK.Serializer.serializeFir ( Fir  fir)
inline

Serialize the Fir object into binary data.

Parameters
firthe object to serialize
Returns
serialized into byte[] object
Exceptions
IllegalArgumentExceptionif fir is null.

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