Package glair.vision

Class Vision

java.lang.Object
glair.vision.Vision

public class Vision extends Object
The main entry point for interacting with the Vision SDK. This class provides access to various vision-related functionalities such as OCR, face recognition, and identity verification.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Represents the version of the software/library.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Vision(VisionSettings visionSettings)
    Constructs a Vision instance with the given vision settings
    Vision(VisionSettings visionSettings, LoggerConfig loggerConfig)
    Constructs a Vision instance with the given vision settings and optional logger configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the configuration settings for the Vision SDK.
    Get access to the FaceBio (Face Recognition) functionality of the Vision SDK.
    Get access to the Identity functionality of the Vision SDK.
    ocr()
    Get access to the OCR functionality of the Vision SDK.
    void
    Print the current logger configuration to the standard output.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Vision

      public Vision(VisionSettings visionSettings)
      Constructs a Vision instance with the given vision settings
      Parameters:
      visionSettings - The vision settings to configure the SDK.
    • Vision

      public Vision(VisionSettings visionSettings, LoggerConfig loggerConfig)
      Constructs a Vision instance with the given vision settings and optional logger configuration.
      Parameters:
      visionSettings - The vision settings to configure the SDK.
      loggerConfig - (Optional) The logger configuration for customizing logging behavior.
  • Method Details

    • config

      public Config config()
      Get the configuration settings for the Vision SDK.
      Returns:
      The configuration settings.
    • ocr

      public Ocr ocr()
      Get access to the OCR functionality of the Vision SDK.
      Returns:
      An OCR instance.
    • faceBio

      public FaceBio faceBio()
      Get access to the FaceBio (Face Recognition) functionality of the Vision SDK.
      Returns:
      A FaceBio instance.
    • identity

      public Identity identity()
      Get access to the Identity functionality of the Vision SDK.
      Returns:
      An Identity instance.
    • printLoggerConfig

      public void printLoggerConfig()
      Print the current logger configuration to the standard output.