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
bytearrayin A buffer containing the AI model to be loaded.finger_model
FingerModelin The AI model to be loaded.processing_unit
ProcessingUnitin 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
Uint8Listin A buffer containing the AI model to be loaded.fingerModel
FingerModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
FingerModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
FingerModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
FingerModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
intin Size of the ‘modelBuffer’ buffer.eFingerModel
id3FingerModelin The AI model to be loaded.eProcessingUnit
id3FingerProcessingUnitin The processing unit to be used.
Returns