FingerLibrary.loadModelBuffer Method

Module: FingerLibrary

Definition

Loads a model from the zoo into the required processing unit.

@staticmethod
load_model_buffer(model_buffer: bytearray, finger_model: FingerModel, processing_unit: ProcessingUnit) -> None

Parameters

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

finger_model FingerModel
in The AI model to be loaded.

processing_unit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Finger Library execution.
static void loadModelBuffer(Uint8List? modelBuffer, FingerModel fingerModel, ProcessingUnit processingUnit)

Parameters

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

fingerModel FingerModel
in The AI model to be loaded.

processingUnit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Finger Library execution.
public static void LoadModelBuffer(byte[] modelBuffer, FingerModel fingerModel, ProcessingUnit processingUnit)

Parameters

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

fingerModel FingerModel
in The AI model to be loaded.

processingUnit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Finger Library execution.
public static void loadModelBuffer(byte[] modelBuffer, FingerModel fingerModel, ProcessingUnit processingUnit) throws FingerException

Parameters

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

fingerModel FingerModel
in The AI model to be loaded.

processingUnit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Finger Library execution.
public static func loadModelBuffer(modelBuffer: [UInt8], fingerModel: FingerModel, processingUnit: ProcessingUnit) throws

Parameters

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

fingerModel FingerModel
in The AI model to be loaded.

processingUnit ProcessingUnit
in The processing unit to be used.

Exceptions

An error has occurred during Finger Library execution.
int id3FingerLibrary_LoadModelBuffer (
    unsigned char * modelBuffer,
    int modelBufferSize,
    id3FingerModel eFingerModel,
    id3FingerProcessingUnit eProcessingUnit)

Parameters

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

modelBufferSize int
in Size of the ‘modelBuffer’ buffer.

eFingerModel id3FingerModel
in The AI model to be loaded.

eProcessingUnit id3FingerProcessingUnit
in The processing unit to be used.

Returns

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