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_bufferbytearrayin A buffer containing the AI model to be loaded.face_modelFaceModelin The AI model to be loaded.processing_unitProcessingUnitin 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
modelBufferUint8Listin A buffer containing the AI model to be loaded.faceModelFaceModelin The AI model to be loaded.processingUnitProcessingUnitin 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
modelBufferbyte[]in A buffer containing the AI model to be loaded.faceModelFaceModelin The AI model to be loaded.processingUnitProcessingUnitin 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
modelBufferbyte[]in A buffer containing the AI model to be loaded.faceModelFaceModelin The AI model to be loaded.processingUnitProcessingUnitin 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.faceModelFaceModelin The AI model to be loaded.processingUnitProcessingUnitin 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
modelBufferunsigned char *in A buffer containing the AI model to be loaded.modelBufferSizeintin Size of the ‘modelBuffer’ buffer.eFaceModelid3FaceModelin The AI model to be loaded.eProcessingUnitid3FaceProcessingUnitin The processing unit to be used.
Returns