Class DetectFacesRequest
- java.lang.Object
-
- com.regula.facesdk.detection.request.DetectFacesRequest
-
public class DetectFacesRequest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DetectFacesRequest(Bitmap image)
Custom Request configuration to specify image, quality, attributes parameters.DetectFacesRequest(Bitmap image, DetectFacesConfiguration configuration)
Custom Request configuration to specify image, quality, attributes parameters.DetectFacesRequest(Bitmap image, DetectFacesConfiguration configuration, java.lang.String tag)
Custom Request configuration to specify image, quality, attributes parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DetectFacesRequest
allAttributesRequestForImage(Bitmap image)
Creates a request for all available attribute results.static DetectFacesRequest
cropAllFacesRequestForImage(Bitmap image)
Creates a request for cropped portraits of all the people in the image.static DetectFacesRequest
cropCentralFaceRequestForImage(Bitmap image)
Creates a request for a cropped portrait of the person whose face is the most central.java.lang.String
getBase64Image()
Return image in base64 formatDetectFacesConfiguration
getConfiguration()
Bitmap
getImage()
java.lang.String
getScenario()
java.lang.String
getTag()
static DetectFacesRequest
qualityFullRequestForImage(Bitmap image)
Creates a request to check all the available quality characteristics.static DetectFacesRequest
qualityICAORequestForImage(Bitmap image)
Creates a request to check the quality characteristics based on the ICAO standard.static DetectFacesRequest
qualityVisaSchengenRequestForImage(Bitmap image)
Creates a request to check the quality characteristics based on the Schengen visa standard.static DetectFacesRequest
qualityVisaUSARequestForImage(Bitmap image)
Creates a request to check the quality characteristics based on the USA visa standard.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.
-
-
-
Constructor Detail
-
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, java.lang.String tag)
Custom Request configuration to specify image, quality, attributes parameters.- Parameters:
image
- android.graphics.Bitmap image to process.configuration
-DetectFacesConfiguration
custom configuration.
-
-
Method Detail
-
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 java.lang.String getScenario()
-
getImage
public Bitmap getImage()
-
getConfiguration
public DetectFacesConfiguration getConfiguration()
-
getBase64Image
public java.lang.String getBase64Image()
Return image in base64 format- Returns:
- converted
String
in the base64
-
getTag
public java.lang.String getTag()
-
-