Class DetectFaceResult


  • public class DetectFaceResult
    extends java.lang.Object
    • 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 assessments
      boolean isQualityCompliant()
      Summary of all image quality assessments.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • 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. Requires OutputImageCrop.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.