public class FaceLibrary
extends java.lang.Object
| Constructor and Description |
|---|
FaceLibrary() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getModelFileName(FaceModel model)
Retrieves the model file name which is needed in the LoadModel function.
|
static java.lang.String |
getVersion()
Retrieves the library version as a `X.Y.Z` formatted string.
|
static LibVersion |
getVersionEx()
Retrieves the library version as a structure.
|
static void |
loadModel(java.lang.String modelPath,
FaceModel faceModel,
ProcessingUnit processingUnit)
Loads a specified AI model into memory from the specified directory.
|
static void |
loadModelBuffer(byte[] modelBuffer,
FaceModel faceModel,
ProcessingUnit processingUnit)
Loads a model into memory from the specified buffer.
|
static void |
unloadModel(FaceModel faceModel,
ProcessingUnit processingUnit)
Unloads a model from memory.
|
public static java.lang.String getModelFileName(FaceModel model) throws FaceException
model - The Face Model to look for.FaceException - An error has occurred during Face Library execution.public static java.lang.String getVersion()
throws FaceException
FaceException - An error has occurred during Face Library execution.public static LibVersion getVersionEx() throws FaceException
FaceException - An error has occurred during Face Library execution.public static void loadModel(java.lang.String modelPath,
FaceModel faceModel,
ProcessingUnit processingUnit)
throws FaceException
modelPath - The path to directory containing the AI model files.faceModel - The AI model to be loaded.processingUnit - The processing unit to be used.FaceException - An error has occurred during Face Library execution.public static void loadModelBuffer(byte[] modelBuffer,
FaceModel faceModel,
ProcessingUnit processingUnit)
throws FaceException
modelBuffer - A buffer containing the AI model to be loaded.faceModel - The AI model to be loaded.processingUnit - The processing unit to be used.FaceException - An error has occurred during Face Library execution.public static void unloadModel(FaceModel faceModel, ProcessingUnit processingUnit) throws FaceException
faceModel - The AI model to be unloaded.processingUnit - The processing unit used for the model.FaceException - An error has occurred during Face Library execution.Copyright © id3 Technologies. All rights reserved. eu.id3.face