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_pathstrin The path to directory containing the AI model files.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 loadModel(String? modelPath, FaceModel faceModel, ProcessingUnit processingUnit)
Parameters
modelPathStringin The path to directory containing the AI model files.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 LoadModel(string modelPath, FaceModel faceModel, ProcessingUnit processingUnit)
Parameters
modelPathstringin The path to directory containing the AI model files.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 loadModel(String modelPath, FaceModel faceModel, ProcessingUnit processingUnit) throws FaceException
Parameters
modelPathStringin The path to directory containing the AI model files.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 loadModel(modelPath: String, faceModel: FaceModel, processingUnit: ProcessingUnit) throws
Parameters
modelPathStringin The path to directory containing the AI model files.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_LoadModel (
const char * modelPath,
id3FaceModel eFaceModel,
id3FaceProcessingUnit eProcessingUnit)
Parameters
modelPathconst char *in The path to directory containing the AI model files.eFaceModelid3FaceModelin The AI model to be loaded.eProcessingUnitid3FaceProcessingUnitin The processing unit to be used.
Returns