![]() |
Face SDK
1.13.0 Mozart release
Face Recognition Software Development Kit
|
Public Member Functions | |
Alignment (int version, int batchSize, int computeDevice) throws FaceSDKException | |
Alignment (int version, License license, int batchSize, int computeDevice) throws FaceSDKException | |
Alignment (int version, DataContainer dataContainer, int batchSize, int computeDevice) throws FaceSDKException | |
Alignment (int version, License license, DataContainer dataContainer, int batchSize, int computeDevice) throws FaceSDKException | |
boolean | equals (Object o) |
int | hashCode () |
void | close () throws Exception |
int | getVersion () |
AlignmentInfoSet | calcAlignment (FaceSet faces) throws FaceSDKException |
boolean | isCompatibleWithFaceDetector (int detectorVersion) |
Protected Member Functions | |
void | finalize () throws Throwable |
Algorithm aligns Face objects for the following processing (template extraction on a Builder or age and gender classification on a AgeGender).
Be aware that Alignment module can work incorrectly if you send the image with several faces on it.
Alignment algorithm can contains quality assessment parameter (AlignmentInfo#faceExists()), which give internal assessment if there is a face on the image or not, but it`s up to the SDK user how to work with this parameter (to use it or not).
Different Alignment algorithm versions can generate different types of aligned images with can cause incompatibility between alignment and builder, and age&gender algorithms. Use AgeGender#isCompatible(int), Builder#isCompatibleWithAlignment(int) methods to check compatibility.
|
inline |
Creates the object with needed version, batch size and compute device.
The data container is loaded from known paths.
The default license is loaded. License#makeDefaultLicense().
version | required version of the algorithm. |
batchSize | the batch size. |
computeDevice | the compute device. -1 = CPU. 0, 1, ..., N - GPU device. |
FaceSDKException | in case of an error in native code. |
|
inline |
Creates the object with needed version, license, batch size and compute device.
The data container is loaded from known paths.
version | required version of the algorithm. |
license | the license object. |
batchSize | the batch size. |
computeDevice | the compute device. -1 = CPU. 0, 1, ..., N - GPU device. |
IllegalArgumentException | if license is null. |
FaceSDKException | in case of an error in native code. |
|
inline |
Creates the object with needed version, data container, batch size and compute device.
The default license is loaded. License#makeDefaultLicense().
version | required version of the algorithm. |
dataContainer | the license object. |
batchSize | the batch size. |
computeDevice | the compute device. -1 = CPU. 0, 1, ..., N - GPU device. |
IllegalArgumentException | if dataContainer is null. |
FaceSDKException | in case of an error in native code. |
|
inline |
Creates the object with needed version, license, data container, batch size and compute device.
version | required version of the algorithm. |
license | the license object. |
dataContainer | the license object. |
batchSize | the batch size. |
computeDevice | the compute device. -1 = CPU. 0, 1, ..., N - GPU device. |
IllegalArgumentException | if license is null or dataContainer is null. |
FaceSDKException | in case of an error in native code. |
|
inline |
Performs alignment operation on specified face set.
faces | the face set to be aligned |
IllegalArgumentException | if faces is null. |
FaceSDKException | in case of an error in native code. |
|
inline |
Returns the algorithm's version
|
inline |
Checks compatibility with FaceDetector version
detectorVersion | FaceDetector version to check compatibility with the alignment algorithm. |