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
bytearrayin A buffer containing the AI model to be loaded.face_model
FaceModelin The AI model to be loaded.processing_unit
ProcessingUnitin 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
Uint8Listin A buffer containing the AI model to be loaded.faceModel
FaceModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
FaceModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
FaceModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
FaceModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
intin Size of the ‘modelBuffer’ buffer.eFaceModel
id3FaceModelin The AI model to be loaded.eProcessingUnit
id3FaceProcessingUnitin The processing unit to be used.
Returns