public class DetectFacesResult extends Object implements Serializable
Constructor and Description |
---|
DetectFacesResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<FaceDetail> |
getFaceDetails()
Details of each face found in the image.
|
String |
getOrientationCorrection()
The orientation of the input image (counter-clockwise direction).
|
int |
hashCode() |
void |
setFaceDetails(Collection<FaceDetail> faceDetails)
Details of each face found in the image.
|
void |
setOrientationCorrection(OrientationCorrection orientationCorrection)
The orientation of the input image (counter-clockwise direction).
|
void |
setOrientationCorrection(String orientationCorrection)
The orientation of the input image (counter-clockwise direction).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetectFacesResult |
withFaceDetails(Collection<FaceDetail> faceDetails)
Details of each face found in the image.
|
DetectFacesResult |
withFaceDetails(FaceDetail... faceDetails)
Details of each face found in the image.
|
DetectFacesResult |
withOrientationCorrection(OrientationCorrection orientationCorrection)
The orientation of the input image (counter-clockwise direction).
|
DetectFacesResult |
withOrientationCorrection(String orientationCorrection)
The orientation of the input image (counter-clockwise direction).
|
public List<FaceDetail> getFaceDetails()
Details of each face found in the image.
Details of each face found in the image.
public void setFaceDetails(Collection<FaceDetail> faceDetails)
Details of each face found in the image.
faceDetails
- Details of each face found in the image.
public DetectFacesResult withFaceDetails(FaceDetail... faceDetails)
Details of each face found in the image.
Returns a reference to this object so that method calls can be chained together.
faceDetails
- Details of each face found in the image.
public DetectFacesResult withFaceDetails(Collection<FaceDetail> faceDetails)
Details of each face found in the image.
Returns a reference to this object so that method calls can be chained together.
faceDetails
- Details of each face found in the image.
public String getOrientationCorrection()
The orientation of the input image (counter-clockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceDetails
represent face locations before the image
orientation is corrected.
If the input image is in .jpeg format, it might contain exchangeable
image (Exif) metadata that includes the image's orientation. If so, and
the Exif metadata for the input image populates the orientation field,
the value of OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent face
locations after Exif metadata is used to correct the image orientation.
Images in .png format don't contain Exif metadata.
Constraints:
Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
The orientation of the input image (counter-clockwise direction).
If your application displays the image, you can use this value to
correct image orientation. The bounding box coordinates returned
in FaceDetails
represent face locations before the
image orientation is corrected.
If the input image is in .jpeg format, it might contain
exchangeable image (Exif) metadata that includes the image's
orientation. If so, and the Exif metadata for the input image
populates the orientation field, the value of
OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent face
locations after Exif metadata is used to correct the image
orientation. Images in .png format don't contain Exif metadata.
OrientationCorrection
public void setOrientationCorrection(String orientationCorrection)
The orientation of the input image (counter-clockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceDetails
represent face locations before the image
orientation is corrected.
If the input image is in .jpeg format, it might contain exchangeable
image (Exif) metadata that includes the image's orientation. If so, and
the Exif metadata for the input image populates the orientation field,
the value of OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent face
locations after Exif metadata is used to correct the image orientation.
Images in .png format don't contain Exif metadata.
Constraints:
Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
orientationCorrection
-
The orientation of the input image (counter-clockwise
direction). If your application displays the image, you can
use this value to correct image orientation. The bounding box
coordinates returned in FaceDetails
represent
face locations before the image orientation is corrected.
If the input image is in .jpeg format, it might contain
exchangeable image (Exif) metadata that includes the image's
orientation. If so, and the Exif metadata for the input image
populates the orientation field, the value of
OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent
face locations after Exif metadata is used to correct the
image orientation. Images in .png format don't contain Exif
metadata.
OrientationCorrection
public DetectFacesResult withOrientationCorrection(String orientationCorrection)
The orientation of the input image (counter-clockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceDetails
represent face locations before the image
orientation is corrected.
If the input image is in .jpeg format, it might contain exchangeable
image (Exif) metadata that includes the image's orientation. If so, and
the Exif metadata for the input image populates the orientation field,
the value of OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent face
locations after Exif metadata is used to correct the image orientation.
Images in .png format don't contain Exif metadata.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
orientationCorrection
-
The orientation of the input image (counter-clockwise
direction). If your application displays the image, you can
use this value to correct image orientation. The bounding box
coordinates returned in FaceDetails
represent
face locations before the image orientation is corrected.
If the input image is in .jpeg format, it might contain
exchangeable image (Exif) metadata that includes the image's
orientation. If so, and the Exif metadata for the input image
populates the orientation field, the value of
OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent
face locations after Exif metadata is used to correct the
image orientation. Images in .png format don't contain Exif
metadata.
OrientationCorrection
public void setOrientationCorrection(OrientationCorrection orientationCorrection)
The orientation of the input image (counter-clockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceDetails
represent face locations before the image
orientation is corrected.
If the input image is in .jpeg format, it might contain exchangeable
image (Exif) metadata that includes the image's orientation. If so, and
the Exif metadata for the input image populates the orientation field,
the value of OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent face
locations after Exif metadata is used to correct the image orientation.
Images in .png format don't contain Exif metadata.
Constraints:
Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
orientationCorrection
-
The orientation of the input image (counter-clockwise
direction). If your application displays the image, you can
use this value to correct image orientation. The bounding box
coordinates returned in FaceDetails
represent
face locations before the image orientation is corrected.
If the input image is in .jpeg format, it might contain
exchangeable image (Exif) metadata that includes the image's
orientation. If so, and the Exif metadata for the input image
populates the orientation field, the value of
OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent
face locations after Exif metadata is used to correct the
image orientation. Images in .png format don't contain Exif
metadata.
OrientationCorrection
public DetectFacesResult withOrientationCorrection(OrientationCorrection orientationCorrection)
The orientation of the input image (counter-clockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceDetails
represent face locations before the image
orientation is corrected.
If the input image is in .jpeg format, it might contain exchangeable
image (Exif) metadata that includes the image's orientation. If so, and
the Exif metadata for the input image populates the orientation field,
the value of OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent face
locations after Exif metadata is used to correct the image orientation.
Images in .png format don't contain Exif metadata.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
orientationCorrection
-
The orientation of the input image (counter-clockwise
direction). If your application displays the image, you can
use this value to correct image orientation. The bounding box
coordinates returned in FaceDetails
represent
face locations before the image orientation is corrected.
If the input image is in .jpeg format, it might contain
exchangeable image (Exif) metadata that includes the image's
orientation. If so, and the Exif metadata for the input image
populates the orientation field, the value of
OrientationCorrection
is null and the
FaceDetails
bounding box coordinates represent
face locations after Exif metadata is used to correct the
image orientation. Images in .png format don't contain Exif
metadata.
OrientationCorrection
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.