public final class FaceAnnotation
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Vision API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
FaceAnnotation() |
Modifier and Type | Method and Description |
---|---|
FaceAnnotation |
clone() |
java.lang.String |
getAngerLikelihood()
Anger likelihood.
|
java.lang.String |
getBlurredLikelihood()
Blurred likelihood.
|
BoundingPoly |
getBoundingPoly()
The bounding polygon around the face.
|
java.lang.Float |
getDetectionConfidence()
Detection confidence.
|
BoundingPoly |
getFdBoundingPoly()
The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only
the skin part of the face.
|
java.lang.String |
getHeadwearLikelihood()
Headwear likelihood.
|
java.lang.String |
getJoyLikelihood()
Joy likelihood.
|
java.lang.Float |
getLandmarkingConfidence()
Face landmarking confidence.
|
java.util.List<Landmark> |
getLandmarks()
Detected face landmarks.
|
java.lang.Float |
getPanAngle()
Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to
the vertical plane perpendicular to the image.
|
java.lang.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.
|
java.lang.String |
getSorrowLikelihood()
Sorrow likelihood.
|
java.lang.String |
getSurpriseLikelihood()
Surprise likelihood.
|
java.lang.Float |
getTiltAngle()
Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to
the image's horizontal plane.
|
java.lang.String |
getUnderExposedLikelihood()
Under-exposed likelihood.
|
FaceAnnotation |
set(java.lang.String fieldName,
java.lang.Object value) |
FaceAnnotation |
setAngerLikelihood(java.lang.String angerLikelihood)
Anger likelihood.
|
FaceAnnotation |
setBlurredLikelihood(java.lang.String blurredLikelihood)
Blurred likelihood.
|
FaceAnnotation |
setBoundingPoly(BoundingPoly boundingPoly)
The bounding polygon around the face.
|
FaceAnnotation |
setDetectionConfidence(java.lang.Float detectionConfidence)
Detection confidence.
|
FaceAnnotation |
setFdBoundingPoly(BoundingPoly fdBoundingPoly)
The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only
the skin part of the face.
|
FaceAnnotation |
setHeadwearLikelihood(java.lang.String headwearLikelihood)
Headwear likelihood.
|
FaceAnnotation |
setJoyLikelihood(java.lang.String joyLikelihood)
Joy likelihood.
|
FaceAnnotation |
setLandmarkingConfidence(java.lang.Float landmarkingConfidence)
Face landmarking confidence.
|
FaceAnnotation |
setLandmarks(java.util.List<Landmark> landmarks)
Detected face landmarks.
|
FaceAnnotation |
setPanAngle(java.lang.Float panAngle)
Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to
the vertical plane perpendicular to the image.
|
FaceAnnotation |
setRollAngle(java.lang.Float rollAngle)
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.
|
FaceAnnotation |
setSorrowLikelihood(java.lang.String sorrowLikelihood)
Sorrow likelihood.
|
FaceAnnotation |
setSurpriseLikelihood(java.lang.String surpriseLikelihood)
Surprise likelihood.
|
FaceAnnotation |
setTiltAngle(java.lang.Float tiltAngle)
Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to
the image's horizontal plane.
|
FaceAnnotation |
setUnderExposedLikelihood(java.lang.String underExposedLikelihood)
Under-exposed likelihood.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAngerLikelihood()
null
for nonepublic FaceAnnotation setAngerLikelihood(java.lang.String angerLikelihood)
angerLikelihood
- angerLikelihood or null
for nonepublic java.lang.String getBlurredLikelihood()
null
for nonepublic FaceAnnotation setBlurredLikelihood(java.lang.String blurredLikelihood)
blurredLikelihood
- blurredLikelihood or null
for nonepublic BoundingPoly getBoundingPoly()
null
for nonepublic FaceAnnotation setBoundingPoly(BoundingPoly boundingPoly)
boundingPoly
- boundingPoly or null
for nonepublic java.lang.Float getDetectionConfidence()
null
for nonepublic FaceAnnotation setDetectionConfidence(java.lang.Float detectionConfidence)
detectionConfidence
- detectionConfidence or null
for nonepublic BoundingPoly getFdBoundingPoly()
null
for nonepublic FaceAnnotation setFdBoundingPoly(BoundingPoly fdBoundingPoly)
fdBoundingPoly
- fdBoundingPoly or null
for nonepublic java.lang.String getHeadwearLikelihood()
null
for nonepublic FaceAnnotation setHeadwearLikelihood(java.lang.String headwearLikelihood)
headwearLikelihood
- headwearLikelihood or null
for nonepublic java.lang.String getJoyLikelihood()
null
for nonepublic FaceAnnotation setJoyLikelihood(java.lang.String joyLikelihood)
joyLikelihood
- joyLikelihood or null
for nonepublic java.lang.Float getLandmarkingConfidence()
null
for nonepublic FaceAnnotation setLandmarkingConfidence(java.lang.Float landmarkingConfidence)
landmarkingConfidence
- landmarkingConfidence or null
for nonepublic java.util.List<Landmark> getLandmarks()
null
for nonepublic FaceAnnotation setLandmarks(java.util.List<Landmark> landmarks)
landmarks
- landmarks or null
for nonepublic java.lang.Float getPanAngle()
null
for nonepublic FaceAnnotation setPanAngle(java.lang.Float panAngle)
panAngle
- panAngle or null
for nonepublic java.lang.Float getRollAngle()
null
for nonepublic FaceAnnotation setRollAngle(java.lang.Float rollAngle)
rollAngle
- rollAngle or null
for nonepublic java.lang.String getSorrowLikelihood()
null
for nonepublic FaceAnnotation setSorrowLikelihood(java.lang.String sorrowLikelihood)
sorrowLikelihood
- sorrowLikelihood or null
for nonepublic java.lang.String getSurpriseLikelihood()
null
for nonepublic FaceAnnotation setSurpriseLikelihood(java.lang.String surpriseLikelihood)
surpriseLikelihood
- surpriseLikelihood or null
for nonepublic java.lang.Float getTiltAngle()
null
for nonepublic FaceAnnotation setTiltAngle(java.lang.Float tiltAngle)
tiltAngle
- tiltAngle or null
for nonepublic java.lang.String getUnderExposedLikelihood()
null
for nonepublic FaceAnnotation setUnderExposedLikelihood(java.lang.String underExposedLikelihood)
underExposedLikelihood
- underExposedLikelihood or null
for nonepublic FaceAnnotation set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public FaceAnnotation clone()
clone
in class com.google.api.client.json.GenericJson