License Validation

After initialization of the SDK, you must set your license token and ensure validity using the following functions. Once you have set your license, then proceed to the Input Image section on the left.

bool Trueface::SDK::setLicense(std::string token)

Sets and validates the given license token. Need to call this method before being able to use the SDK.

See also

isLicensed()

Parameters:

token[in] The license token (if you do not have this talk to support@pangiam.com).

Returns:

Whether the given license token is valid.

bool Trueface::SDK::isLicensed(unsigned int &daysRemaining)

Checks whether the given license token is valid and you can use the SDK.

See also

setLicense()

Parameters:

daysRemaining[out] The number of remaining days that the token is valid for.

Returns:

Whether the given license token is valid.

static std::string Trueface::SDK::getDeviceFingerprint()

Obtain the unique fingerprint for the current device. The fingerprint is used to generate a hardware locked token.

Returns:

The fingerprint as a string.

static std::string Trueface::SDK::getGPUUUID()

Obtain the GPU UUID(s). The GPU UUID(s) are used to generate a GPU locked token. Note, this function can only be run on the GPU SDK, otherwise it will throw an exception.

Returns:

The GPU UUID(s).