public class Landmark
extends java.lang.Object
implements java.io.Serializable
Indicates the location of the landmark on the face.
Constructor and Description |
---|
Landmark() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getType()
Type of landmark.
|
java.lang.Float |
getX()
The x-coordinate of the landmark expressed as a ratio of the width of the
image.
|
java.lang.Float |
getY()
The y-coordinate of the landmark expressed as a ratio of the height of
the image.
|
int |
hashCode() |
void |
setType(LandmarkType type)
Type of landmark.
|
void |
setType(java.lang.String type)
Type of landmark.
|
void |
setX(java.lang.Float x)
The x-coordinate of the landmark expressed as a ratio of the width of the
image.
|
void |
setY(java.lang.Float y)
The y-coordinate of the landmark expressed as a ratio of the height of
the image.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Landmark |
withType(LandmarkType type)
Type of landmark.
|
Landmark |
withType(java.lang.String type)
Type of landmark.
|
Landmark |
withX(java.lang.Float x)
The x-coordinate of the landmark expressed as a ratio of the width of the
image.
|
Landmark |
withY(java.lang.Float y)
The y-coordinate of the landmark expressed as a ratio of the height of
the image.
|
public java.lang.String getType()
Type of landmark.
Constraints:
Allowed Values: eyeLeft, eyeRight, nose, mouthLeft, mouthRight,
leftEyeBrowLeft, leftEyeBrowRight, leftEyeBrowUp, rightEyeBrowLeft,
rightEyeBrowRight, rightEyeBrowUp, leftEyeLeft, leftEyeRight, leftEyeUp,
leftEyeDown, rightEyeLeft, rightEyeRight, rightEyeUp, rightEyeDown,
noseLeft, noseRight, mouthUp, mouthDown, leftPupil, rightPupil,
upperJawlineLeft, midJawlineLeft, chinBottom, midJawlineRight,
upperJawlineRight
Type of landmark.
LandmarkType
public void setType(java.lang.String type)
Type of landmark.
Constraints:
Allowed Values: eyeLeft, eyeRight, nose, mouthLeft, mouthRight,
leftEyeBrowLeft, leftEyeBrowRight, leftEyeBrowUp, rightEyeBrowLeft,
rightEyeBrowRight, rightEyeBrowUp, leftEyeLeft, leftEyeRight, leftEyeUp,
leftEyeDown, rightEyeLeft, rightEyeRight, rightEyeUp, rightEyeDown,
noseLeft, noseRight, mouthUp, mouthDown, leftPupil, rightPupil,
upperJawlineLeft, midJawlineLeft, chinBottom, midJawlineRight,
upperJawlineRight
type
- Type of landmark.
LandmarkType
public Landmark withType(java.lang.String type)
Type of landmark.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: eyeLeft, eyeRight, nose, mouthLeft, mouthRight,
leftEyeBrowLeft, leftEyeBrowRight, leftEyeBrowUp, rightEyeBrowLeft,
rightEyeBrowRight, rightEyeBrowUp, leftEyeLeft, leftEyeRight, leftEyeUp,
leftEyeDown, rightEyeLeft, rightEyeRight, rightEyeUp, rightEyeDown,
noseLeft, noseRight, mouthUp, mouthDown, leftPupil, rightPupil,
upperJawlineLeft, midJawlineLeft, chinBottom, midJawlineRight,
upperJawlineRight
type
- Type of landmark.
LandmarkType
public void setType(LandmarkType type)
Type of landmark.
Constraints:
Allowed Values: eyeLeft, eyeRight, nose, mouthLeft, mouthRight,
leftEyeBrowLeft, leftEyeBrowRight, leftEyeBrowUp, rightEyeBrowLeft,
rightEyeBrowRight, rightEyeBrowUp, leftEyeLeft, leftEyeRight, leftEyeUp,
leftEyeDown, rightEyeLeft, rightEyeRight, rightEyeUp, rightEyeDown,
noseLeft, noseRight, mouthUp, mouthDown, leftPupil, rightPupil,
upperJawlineLeft, midJawlineLeft, chinBottom, midJawlineRight,
upperJawlineRight
type
- Type of landmark.
LandmarkType
public Landmark withType(LandmarkType type)
Type of landmark.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: eyeLeft, eyeRight, nose, mouthLeft, mouthRight,
leftEyeBrowLeft, leftEyeBrowRight, leftEyeBrowUp, rightEyeBrowLeft,
rightEyeBrowRight, rightEyeBrowUp, leftEyeLeft, leftEyeRight, leftEyeUp,
leftEyeDown, rightEyeLeft, rightEyeRight, rightEyeUp, rightEyeDown,
noseLeft, noseRight, mouthUp, mouthDown, leftPupil, rightPupil,
upperJawlineLeft, midJawlineLeft, chinBottom, midJawlineRight,
upperJawlineRight
type
- Type of landmark.
LandmarkType
public java.lang.Float getX()
The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
public void setX(java.lang.Float x)
The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
x
- The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
public Landmark withX(java.lang.Float x)
The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
Returns a reference to this object so that method calls can be chained together.
x
- The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
public java.lang.Float getY()
The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
public void setY(java.lang.Float y)
The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
y
- The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
public Landmark withY(java.lang.Float y)
The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
Returns a reference to this object so that method calls can be chained together.
y
- The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.