Class DetectFacesRequest

java.lang.Object
com.regula.facesdk.detection.request.DetectFacesRequest

public class DetectFacesRequest extends Object
  • Constructor Details

    • DetectFacesRequest

      public DetectFacesRequest(Bitmap image, DetectFacesConfiguration configuration)
      Custom Request configuration to specify image, quality, attributes parameters.
      Parameters:
      image - android.graphics.Bitmap image to process.
      configuration - DetectFacesConfiguration custom configuration.
    • DetectFacesRequest

      public DetectFacesRequest(Bitmap image)
      Custom Request configuration to specify image, quality, attributes parameters.
      Parameters:
      image - android.graphics.Bitmap image to process.
    • DetectFacesRequest

      public DetectFacesRequest(Bitmap image, DetectFacesConfiguration configuration, String tag)
      Custom Request configuration to specify image, quality, attributes parameters.
      Parameters:
      image - android.graphics.Bitmap image to process.
      configuration - DetectFacesConfiguration custom configuration.
  • Method Details

    • qualityFullRequestForImage

      public static DetectFacesRequest qualityFullRequestForImage(Bitmap image)
      Creates a request to check all the available quality characteristics.
      Parameters:
      image - android.graphics.Bitmap image to process.
      Returns:
      DetectFacesRequest.
    • qualityICAORequestForImage

      public static DetectFacesRequest qualityICAORequestForImage(Bitmap image)
      Creates a request to check the quality characteristics based on the ICAO standard.
      Parameters:
      image - android.graphics.Bitmap image to process.
      Returns:
      DetectFacesRequest.
    • qualityVisaSchengenRequestForImage

      public static DetectFacesRequest qualityVisaSchengenRequestForImage(Bitmap image)
      Creates a request to check the quality characteristics based on the Schengen visa standard.
      Parameters:
      image - android.graphics.Bitmap image to process.
      Returns:
      DetectFacesRequest.
    • qualityVisaUSARequestForImage

      public static DetectFacesRequest qualityVisaUSARequestForImage(Bitmap image)
      Creates a request to check the quality characteristics based on the USA visa standard.
      Parameters:
      image - android.graphics.Bitmap image to process.
      Returns:
      DetectFacesRequest.
    • cropCentralFaceRequestForImage

      public static DetectFacesRequest cropCentralFaceRequestForImage(Bitmap image)
      Creates a request for a cropped portrait of the person whose face is the most central.
      Parameters:
      image - android.graphics.Bitmap image to process.
      Returns:
      DetectFacesRequest.
    • cropAllFacesRequestForImage

      public static DetectFacesRequest cropAllFacesRequestForImage(Bitmap image)
      Creates a request for cropped portraits of all the people in the image.
      Parameters:
      image - android.graphics.Bitmap image to process.
      Returns:
      DetectFacesRequest.
    • thumbnailRequestForImage

      public static DetectFacesRequest thumbnailRequestForImage(Bitmap image)
      Creates a request for a cropped portrait of the person whose face is the most central in the image in the original size.
      Parameters:
      image - android.graphics.Bitmap image to process.
      Returns:
      DetectFacesRequest.
    • allAttributesRequestForImage

      public static DetectFacesRequest allAttributesRequestForImage(Bitmap image)
      Creates a request for all available attribute results.
      Parameters:
      image - android.graphics.Bitmap image to process.
      Returns:
      DetectFacesRequest.
    • getScenario

      public String getScenario()
    • getImage

      public Bitmap getImage()
    • getConfiguration

      public DetectFacesConfiguration getConfiguration()
    • getBase64Image

      public String getBase64Image()
      Return image in base64 format
      Returns:
      converted String in the base64
    • getTag

      public String getTag()