FaceLibrary.loadModel Method¶
Module: FaceLibrary
Definition¶
Loads a specified AI model into memory from the specified directory.
@staticmethod
load_model(model_path: str, face_model: FaceModel, processing_unit: ProcessingUnit) -> None
Parameters
model_path
strin The path to directory containing the AI model files.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 loadModel(String? modelPath, FaceModel faceModel, ProcessingUnit processingUnit)
Parameters
modelPath
Stringin The path to directory containing the AI model files.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 LoadModel(string modelPath, FaceModel faceModel, ProcessingUnit processingUnit)
Parameters
modelPath
stringin The path to directory containing the AI model files.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 loadModel(String modelPath, FaceModel faceModel, ProcessingUnit processingUnit) throws FaceException
Parameters
modelPath
Stringin The path to directory containing the AI model files.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 loadModel(modelPath: String, faceModel: FaceModel, processingUnit: ProcessingUnit) throws
Parameters
modelPath
Stringin The path to directory containing the AI model files.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_LoadModel (
const char * modelPath,
id3FaceModel eFaceModel,
id3FaceProcessingUnit eProcessingUnit)
Parameters
modelPath
const char *in The path to directory containing the AI model files.eFaceModel
id3FaceModelin The AI model to be loaded.eProcessingUnit
id3FaceProcessingUnitin The processing unit to be used.
Returns