Luxand FaceSDK v8.3 Developer's Guide

Initialization

FSDK_Initialize Function

Initializes the FaceSDK library. Should be called before using of any face detection functions.

C++ Syntax:

int FSDK_Initialize(char* DataFilesPath);

Delphi Syntax:

function FSDK_Initialize(DataFilesPath: PChar): integer;

C# Syntax:

int FSDK.InitializeLibrary();

Java and Android Syntax:

int FSDK.Initialize();

Parameters:

DataFilesPath - pointer to the null-terminated string specifying the path where facesdk.dll is stored. An empty string means the current directory. (Note: the parameter is not used since version 1.8; an empty string might be passed as this parameter.)

Return Value:

Returns FSDKE_OK if successful or FSDK_IO_ERROR if an I/O error occurs.

Python Syntax:

def FSDK.Initialize(dataFilesPath='');

Return Value:

None

FSDK_Finalize Function

Finalizes the FaceSDK library. Should be called when the application is exited. Before calling FSDK_Finalize, you must release all FaceSDK resources in the correct order to avoid memory leaks or undefined behavior.

C++ Syntax:

int FSDK_Finalize();

Delphi Syntax:

function FSDK_Finalize: integer;

C# Syntax:

int FSDK.FinalizeLibrary();

Java and Android Syntax:

int FSDK.Finalize();

Return Value:

Returns FSDKE_OK if successful.

Python Syntax:

def FSDK.Finalize();

Return Value:

None