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.License Class Reference
Inheritance diagram for com.tech5.FaceSDK.License:
com.tech5.FaceSDK.RemoteLicense

Public Member Functions

String getLicenseInfo ()
 
boolean equals (Object o)
 
int hashCode ()
 
void close () throws Exception
 

Static Public Member Functions

static License loadLicenceFromFile () throws FaceSDKException
 
static License loadLicenceFromFile (String licenseFile) throws FaceSDKException
 
static License loadLicenceFromData (byte[] data) throws FaceSDKException
 
static License makeDefaultLicense () throws FaceSDKException
 
static native byte [] generateLicenseRequest (int[] gpu_ids) throws FaceSDKException
 

Protected Member Functions

void finalize () throws Throwable
 

Detailed Description

A license object is required to create FaceSDK algorithms and get information about your limits in FaceSDK. Use License#loadLicenceFromFile() of License#loadLicenceFromData(byte[]) functions for make a license object.

Member Function Documentation

◆ generateLicenseRequest()

static native byte [] com.tech5.FaceSDK.License.generateLicenseRequest ( int []  gpu_ids) throws FaceSDKException
static

Function to generate license request.

Parameters
gpu_idsarray of GPU devices for which license should be issued or empty array if no GPUs is used.
Returns
license request data.
Exceptions
FaceSDKExceptionin case of an error in native code.

◆ getLicenseInfo()

String com.tech5.FaceSDK.License.getLicenseInfo ( )
inline

Information in YML format about your limits in FaceSDK.

Returns
information about your limits

◆ loadLicenceFromData()

static License com.tech5.FaceSDK.License.loadLicenceFromData ( byte []  data) throws FaceSDKException
inlinestatic

Load license from raw data

Parameters
dataraw license data.
Returns
the loaded licence.
Exceptions
FaceSDKExceptionin case of an error in native code.
IllegalArgumentExceptionif data is null or empty.

◆ loadLicenceFromFile() [1/2]

static License com.tech5.FaceSDK.License.loadLicenceFromFile ( ) throws FaceSDKException
inlinestatic

Load license from file in known paths.

Returns
the loaded licence.
Exceptions
FaceSDKExceptionin case of an error in native code.

◆ loadLicenceFromFile() [2/2]

static License com.tech5.FaceSDK.License.loadLicenceFromFile ( String  licenseFile) throws FaceSDKException
inlinestatic

Load license from specified file.

Parameters
licenseFilefile with license
Returns
the loaded licence.
Exceptions
FaceSDKExceptionin case of an error in native code.
IllegalArgumentExceptionif licenseFile is null or empty

◆ makeDefaultLicense()

static License com.tech5.FaceSDK.License.makeDefaultLicense ( ) throws FaceSDKException
inlinestatic

Makes License or RemoteLicense depending on environment variable FACE_SDK_REMOTE_LICENSE_DEFAULT.

Returns
An instance of License or RemoteLicense.
Exceptions
FaceSDKExceptionin case of an error in native code.

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