FaceLibrary.loadModelBuffer Method

Module: FaceLibrary

Definition

Loads a model into memory from the specified buffer.

@staticmethod
load_model_buffer(model_buffer: bytearray, face_model: FaceModel, processing_unit: ProcessingUnit) -> None

Parameters

model_buffer bytearray
in A buffer containing the AI model to be loaded.

face_model FaceModel
in The AI model to be loaded.

processing_unit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Face Library execution.
static void loadModelBuffer(Uint8List? modelBuffer, FaceModel faceModel, ProcessingUnit processingUnit)

Parameters

modelBuffer Uint8List
in A buffer containing the AI model to be loaded.

faceModel FaceModel
in The AI model to be loaded.

processingUnit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Face Library execution.
public static void LoadModelBuffer(byte[] modelBuffer, FaceModel faceModel, ProcessingUnit processingUnit)

Parameters

modelBuffer byte[]
in A buffer containing the AI model to be loaded.

faceModel FaceModel
in The AI model to be loaded.

processingUnit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Face Library execution.
public static void loadModelBuffer(byte[] modelBuffer, FaceModel faceModel, ProcessingUnit processingUnit) throws FaceException

Parameters

modelBuffer byte[]
in A buffer containing the AI model to be loaded.

faceModel FaceModel
in The AI model to be loaded.

processingUnit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Face Library execution.
public static func loadModelBuffer(modelBuffer: [UInt8], faceModel: FaceModel, processingUnit: ProcessingUnit) throws

Parameters

modelBuffer [UInt8]
in A buffer containing the AI model to be loaded.

faceModel FaceModel
in The AI model to be loaded.

processingUnit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Face Library execution.
int id3FaceLibrary_LoadModelBuffer (
    unsigned char * modelBuffer,
    int modelBufferSize,
    id3FaceModel eFaceModel,
    id3FaceProcessingUnit eProcessingUnit)

Parameters

modelBuffer unsigned char *
in A buffer containing the AI model to be loaded.

modelBufferSize int
in Size of the ‘modelBuffer’ buffer.

eFaceModel id3FaceModel
in The AI model to be loaded.

eProcessingUnit id3FaceProcessingUnit
in The processing unit to be used.

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.