Class DetectFaceResult
java.lang.Object
com.regula.facesdk.detection.response.DetectFaceResult
-
Constructor Summary
ConstructorDescriptionDetectFaceResult
(List<ImageQualityResult> quality, List<DetectFacesAttributeResult> attributes, List<Point> landMarks, String cropImage, Rect faceRect, Rect originalRect) -
Method Summary
Modifier and TypeMethodDescriptionThe array of the checked attributes.Base64 image of the aligned and cropped portrait.Rect
Coordinates of the rectangular area that contains the face relative to the overall image.List<Point>
Absolute coordinates of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.Rect
Coordinates of the rectangle with the face on the original image prepared for the face crop.The array for the face image quality assessmentsboolean
Summary of all image quality assessments.
-
Constructor Details
-
DetectFaceResult
public DetectFaceResult(List<ImageQualityResult> quality, List<DetectFacesAttributeResult> attributes, List<Point> landMarks, String cropImage, Rect faceRect, Rect originalRect)
-
-
Method Details
-
getQuality
The array for the face image quality assessments- Returns:
List<ImageQualityResult>
-
getAttributes
The array of the checked attributes.- Returns:
List<DetectFacesAttributeResult>
-
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
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.
-