Class Engine

java.lang.Object
com.vivoka.vsdk.biometrics.Engine
All Implemented Interfaces:
IEngine

public abstract class Engine extends Object implements IEngine
Abstract class representing the biometric engine.
  • Field Details

  • Constructor Details

    • Engine

      public Engine()
  • Method Details

    • getAuthenticator

      public Authenticator getAuthenticator(String name, Model model, IRecognizerListener listener) throws Exception
      Gets or creates an authenticator with the specified name and listener.
      Parameters:
      name - The name of the recognizer.
      model - The model to use for authentication
      listener - The listener to handle events. If the authenticator already exists, the listener will be overridden by the new one.
      Returns:
      The authenticator instance.
      Throws:
      Exception - If the authenticator cannot be created or found.
    • removeAuthenticator

      public void removeAuthenticator(String name) throws Exception
      Removes the authenticator with the specified name by releasing the authenticator resources.
      Parameters:
      name - The name of the authenticator to remove.
      Throws:
      Exception - If the authenticator cannot be removed.
    • getIdentificator

      public Identificator getIdentificator(String name, Model model, IRecognizerListener listener) throws Exception
      Gets or creates a identificator with the specified name and listener.
      Parameters:
      name - The name of the identificator.
      model - The model to use for identificator
      listener - The listener to handle identificator events. If the identificator already exists, the listener will be overridden by the new one.
      Returns:
      The identificator instance.
      Throws:
      Exception - If the identificator cannot be created or found.
    • removeIdentificator

      public void removeIdentificator(String name) throws Exception
      Removes the identificator with the specified name by releasing the identificator resources.
      Parameters:
      name - The name of the identificator to remove.
      Throws:
      Exception - If the identificator cannot be removed.
    • getModel

      public Model getModel(String name, ModelType type) throws Exception
      Gets or creates a model with the specified name and listener.
      Parameters:
      name - The name of the model.
      type - The type of the model TEXT_DEPENDANT or TEXT_INDEPENDANT.
      Returns:
      The model instance.
      Throws:
      Exception - If the model cannot be created or found.
    • removeModel

      public void removeModel(String name) throws Exception
      Removes the model with the specified name by releasing the model resources.
      Parameters:
      name - The name of the model to remove.
      Throws:
      Exception - If the model cannot be removed.
    • makeAuthenticator

      protected abstract Authenticator makeAuthenticator(String name, Model model, IRecognizerListener listener) throws Exception
      Throws:
      Exception
    • makeIdentificator

      protected abstract Identificator makeIdentificator(String name, Model model, IRecognizerListener listener) throws Exception
      Throws:
      Exception
    • makeModel

      protected abstract Model makeModel(String name, ModelType type) throws Exception
      Throws:
      Exception