Class DetectFaceResult
- java.lang.Object
-
- com.regula.facesdk.detection.response.DetectFaceResult
-
public class DetectFaceResult extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DetectFaceResult​(java.util.List<ImageQualityResult> quality, java.util.List<DetectFacesAttributeResult> attributes, java.util.List<Point> landMarks, java.lang.String cropImage, Rect faceRect, Rect originalRect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DetectFacesAttributeResult>
getAttributes()
The array of the checked attributes.java.lang.String
getCropImage()
Base64 image of the aligned and cropped portrait.Rect
getFaceRect()
Coordinates of the rectangular area that contains the face relative to the overall image.java.util.List<Point>
getLandMarks()
Absolute coordinates of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.Rect
getOriginalRect()
Coordinates of the rectangle with the face on the original image prepared for the face crop.java.util.List<ImageQualityResult>
getQuality()
The array for the face image quality assessmentsboolean
isQualityCompliant()
Summary of all image quality assessments.
-
-
-
Constructor Detail
-
DetectFaceResult
public DetectFaceResult​(java.util.List<ImageQualityResult> quality, java.util.List<DetectFacesAttributeResult> attributes, java.util.List<Point> landMarks, java.lang.String cropImage, Rect faceRect, Rect originalRect)
-
-
Method Detail
-
getQuality
public java.util.List<ImageQualityResult> getQuality()
The array for the face image quality assessments- Returns:
List
-
getAttributes
public java.util.List<DetectFacesAttributeResult> getAttributes()
The array of the checked attributes.- Returns:
List
-
getCropImage
public java.lang.String getCropImage()
Base64 image of the aligned and cropped portrait. Returned ifDetectFacesConfiguration.getOutputImageParams()
is set or predefined scenario is used.- Returns:
String
-
getFaceRect
public Rect getFaceRect()
Coordinates of the rectangular area that contains the face relative to the overall image.- Returns:
- android.graphics.Rect
-
getOriginalRect
public Rect getOriginalRect()
Coordinates of the rectangle with the face on the original image prepared for the face crop. RequiresOutputImageCrop.isReturnOriginalRect()
is set.- Returns:
- android.graphics.Rect
-
getLandMarks
public java.util.List<Point> getLandMarks()
Absolute coordinates of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.- Returns:
- List<android.graphics.Rect>
-
isQualityCompliant
public boolean isQualityCompliant()
Summary of all image quality assessments. Returns true if all image quality assessments have success status. Returns false if any of image quality assessments have non-success status or none of quality assessments were requested.
-
-