Interface FaceAnnotationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
FaceAnnotation, FaceAnnotation.Builder

@Generated public interface FaceAnnotationOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasBoundingPoly

      boolean hasBoundingPoly()
       The bounding polygon around the face. The coordinates of the bounding box
       are in the original image's scale.
       The bounding box is computed to "frame" the face in accordance with human
       expectations. It is based on the landmarker results.
       Note that one or more x and/or y coordinates may not be generated in the
       `BoundingPoly` (the polygon will be unbounded) if only a partial face
       appears in the image to be annotated.
       
      .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      Returns:
      Whether the boundingPoly field is set.
    • getBoundingPoly

      BoundingPoly getBoundingPoly()
       The bounding polygon around the face. The coordinates of the bounding box
       are in the original image's scale.
       The bounding box is computed to "frame" the face in accordance with human
       expectations. It is based on the landmarker results.
       Note that one or more x and/or y coordinates may not be generated in the
       `BoundingPoly` (the polygon will be unbounded) if only a partial face
       appears in the image to be annotated.
       
      .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
      Returns:
      The boundingPoly.
    • getBoundingPolyOrBuilder

      BoundingPolyOrBuilder getBoundingPolyOrBuilder()
       The bounding polygon around the face. The coordinates of the bounding box
       are in the original image's scale.
       The bounding box is computed to "frame" the face in accordance with human
       expectations. It is based on the landmarker results.
       Note that one or more x and/or y coordinates may not be generated in the
       `BoundingPoly` (the polygon will be unbounded) if only a partial face
       appears in the image to be annotated.
       
      .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
    • hasFdBoundingPoly

      boolean hasFdBoundingPoly()
       The `fd_bounding_poly` bounding polygon is tighter than the
       `boundingPoly`, and encloses only the skin part of the face. Typically, it
       is used to eliminate the face from any image analysis that detects the
       "amount of skin" visible in an image. It is not based on the
       landmarker results, only on the initial face detection, hence
       the <code>fd</code> (face detection) prefix.
       
      .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;
      Returns:
      Whether the fdBoundingPoly field is set.
    • getFdBoundingPoly

      BoundingPoly getFdBoundingPoly()
       The `fd_bounding_poly` bounding polygon is tighter than the
       `boundingPoly`, and encloses only the skin part of the face. Typically, it
       is used to eliminate the face from any image analysis that detects the
       "amount of skin" visible in an image. It is not based on the
       landmarker results, only on the initial face detection, hence
       the <code>fd</code> (face detection) prefix.
       
      .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;
      Returns:
      The fdBoundingPoly.
    • getFdBoundingPolyOrBuilder

      BoundingPolyOrBuilder getFdBoundingPolyOrBuilder()
       The `fd_bounding_poly` bounding polygon is tighter than the
       `boundingPoly`, and encloses only the skin part of the face. Typically, it
       is used to eliminate the face from any image analysis that detects the
       "amount of skin" visible in an image. It is not based on the
       landmarker results, only on the initial face detection, hence
       the <code>fd</code> (face detection) prefix.
       
      .google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;
    • getLandmarksList

      List<FaceAnnotation.Landmark> getLandmarksList()
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • getLandmarks

      FaceAnnotation.Landmark getLandmarks(int index)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • getLandmarksCount

      int getLandmarksCount()
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • getLandmarksOrBuilderList

      List<? extends FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList()
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • getLandmarksOrBuilder

      FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder(int index)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • getRollAngle

      float getRollAngle()
       Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
       of the face relative to the image vertical about the axis perpendicular to
       the face. Range [-180,180].
       
      float roll_angle = 4;
      Returns:
      The rollAngle.
    • getPanAngle

      float getPanAngle()
       Yaw angle, which indicates the leftward/rightward angle that the face is
       pointing relative to the vertical plane perpendicular to the image. Range
       [-180,180].
       
      float pan_angle = 5;
      Returns:
      The panAngle.
    • getTiltAngle

      float getTiltAngle()
       Pitch angle, which indicates the upwards/downwards angle that the face is
       pointing relative to the image's horizontal plane. Range [-180,180].
       
      float tilt_angle = 6;
      Returns:
      The tiltAngle.
    • getDetectionConfidence

      float getDetectionConfidence()
       Detection confidence. Range [0, 1].
       
      float detection_confidence = 7;
      Returns:
      The detectionConfidence.
    • getLandmarkingConfidence

      float getLandmarkingConfidence()
       Face landmarking confidence. Range [0, 1].
       
      float landmarking_confidence = 8;
      Returns:
      The landmarkingConfidence.
    • getJoyLikelihoodValue

      int getJoyLikelihoodValue()
       Joy likelihood.
       
      .google.cloud.vision.v1.Likelihood joy_likelihood = 9;
      Returns:
      The enum numeric value on the wire for joyLikelihood.
    • getJoyLikelihood

      Likelihood getJoyLikelihood()
       Joy likelihood.
       
      .google.cloud.vision.v1.Likelihood joy_likelihood = 9;
      Returns:
      The joyLikelihood.
    • getSorrowLikelihoodValue

      int getSorrowLikelihoodValue()
       Sorrow likelihood.
       
      .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10;
      Returns:
      The enum numeric value on the wire for sorrowLikelihood.
    • getSorrowLikelihood

      Likelihood getSorrowLikelihood()
       Sorrow likelihood.
       
      .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10;
      Returns:
      The sorrowLikelihood.
    • getAngerLikelihoodValue

      int getAngerLikelihoodValue()
       Anger likelihood.
       
      .google.cloud.vision.v1.Likelihood anger_likelihood = 11;
      Returns:
      The enum numeric value on the wire for angerLikelihood.
    • getAngerLikelihood

      Likelihood getAngerLikelihood()
       Anger likelihood.
       
      .google.cloud.vision.v1.Likelihood anger_likelihood = 11;
      Returns:
      The angerLikelihood.
    • getSurpriseLikelihoodValue

      int getSurpriseLikelihoodValue()
       Surprise likelihood.
       
      .google.cloud.vision.v1.Likelihood surprise_likelihood = 12;
      Returns:
      The enum numeric value on the wire for surpriseLikelihood.
    • getSurpriseLikelihood

      Likelihood getSurpriseLikelihood()
       Surprise likelihood.
       
      .google.cloud.vision.v1.Likelihood surprise_likelihood = 12;
      Returns:
      The surpriseLikelihood.
    • getUnderExposedLikelihoodValue

      int getUnderExposedLikelihoodValue()
       Under-exposed likelihood.
       
      .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13;
      Returns:
      The enum numeric value on the wire for underExposedLikelihood.
    • getUnderExposedLikelihood

      Likelihood getUnderExposedLikelihood()
       Under-exposed likelihood.
       
      .google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13;
      Returns:
      The underExposedLikelihood.
    • getBlurredLikelihoodValue

      int getBlurredLikelihoodValue()
       Blurred likelihood.
       
      .google.cloud.vision.v1.Likelihood blurred_likelihood = 14;
      Returns:
      The enum numeric value on the wire for blurredLikelihood.
    • getBlurredLikelihood

      Likelihood getBlurredLikelihood()
       Blurred likelihood.
       
      .google.cloud.vision.v1.Likelihood blurred_likelihood = 14;
      Returns:
      The blurredLikelihood.
    • getHeadwearLikelihoodValue

      int getHeadwearLikelihoodValue()
       Headwear likelihood.
       
      .google.cloud.vision.v1.Likelihood headwear_likelihood = 15;
      Returns:
      The enum numeric value on the wire for headwearLikelihood.
    • getHeadwearLikelihood

      Likelihood getHeadwearLikelihood()
       Headwear likelihood.
       
      .google.cloud.vision.v1.Likelihood headwear_likelihood = 15;
      Returns:
      The headwearLikelihood.