public class IndexFacesResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
IndexFacesResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFaceModelVersion()
Version number of the face detection model associated with the input
collection (
CollectionId ). |
java.util.List<FaceRecord> |
getFaceRecords()
An array of faces detected and added to the collection.
|
java.lang.String |
getOrientationCorrection()
The orientation of the input image (counterclockwise direction).
|
int |
hashCode() |
void |
setFaceModelVersion(java.lang.String faceModelVersion)
Version number of the face detection model associated with the input
collection (
CollectionId ). |
void |
setFaceRecords(java.util.Collection<FaceRecord> faceRecords)
An array of faces detected and added to the collection.
|
void |
setOrientationCorrection(OrientationCorrection orientationCorrection)
The orientation of the input image (counterclockwise direction).
|
void |
setOrientationCorrection(java.lang.String orientationCorrection)
The orientation of the input image (counterclockwise direction).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IndexFacesResult |
withFaceModelVersion(java.lang.String faceModelVersion)
Version number of the face detection model associated with the input
collection (
CollectionId ). |
IndexFacesResult |
withFaceRecords(java.util.Collection<FaceRecord> faceRecords)
An array of faces detected and added to the collection.
|
IndexFacesResult |
withFaceRecords(FaceRecord... faceRecords)
An array of faces detected and added to the collection.
|
IndexFacesResult |
withOrientationCorrection(OrientationCorrection orientationCorrection)
The orientation of the input image (counterclockwise direction).
|
IndexFacesResult |
withOrientationCorrection(java.lang.String orientationCorrection)
The orientation of the input image (counterclockwise direction).
|
public java.util.List<FaceRecord> getFaceRecords()
An array of faces detected and added to the collection. For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
An array of faces detected and added to the collection. For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
public void setFaceRecords(java.util.Collection<FaceRecord> faceRecords)
An array of faces detected and added to the collection. For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
faceRecords
- An array of faces detected and added to the collection. For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
public IndexFacesResult withFaceRecords(FaceRecord... faceRecords)
An array of faces detected and added to the collection. For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
Returns a reference to this object so that method calls can be chained together.
faceRecords
- An array of faces detected and added to the collection. For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
public IndexFacesResult withFaceRecords(java.util.Collection<FaceRecord> faceRecords)
An array of faces detected and added to the collection. For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
Returns a reference to this object so that method calls can be chained together.
faceRecords
- An array of faces detected and added to the collection. For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
public java.lang.String getOrientationCorrection()
The orientation of the input image (counterclockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceRecords
represent face locations before the image
orientation is corrected.
If the input image is in jpeg format, it might contain exchangeable image
(Exif) metadata. If so, and the Exif metadata populates the orientation
field, the value of OrientationCorrection
is null and the
bounding box coordinates in FaceRecords
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 (counterclockwise direction).
If your application displays the image, you can use this value to
correct image orientation. The bounding box coordinates returned
in FaceRecords
represent face locations before the
image orientation is corrected.
If the input image is in jpeg format, it might contain
exchangeable image (Exif) metadata. If so, and the Exif metadata
populates the orientation field, the value of
OrientationCorrection
is null and the bounding box
coordinates in FaceRecords
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(java.lang.String orientationCorrection)
The orientation of the input image (counterclockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceRecords
represent face locations before the image
orientation is corrected.
If the input image is in jpeg format, it might contain exchangeable image
(Exif) metadata. If so, and the Exif metadata populates the orientation
field, the value of OrientationCorrection
is null and the
bounding box coordinates in FaceRecords
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 (counterclockwise
direction). If your application displays the image, you can
use this value to correct image orientation. The bounding box
coordinates returned in FaceRecords
represent
face locations before the image orientation is corrected.
If the input image is in jpeg format, it might contain
exchangeable image (Exif) metadata. If so, and the Exif
metadata populates the orientation field, the value of
OrientationCorrection
is null and the bounding
box coordinates in FaceRecords
represent face
locations after Exif metadata is used to correct the image
orientation. Images in .png format don't contain Exif
metadata.
OrientationCorrection
public IndexFacesResult withOrientationCorrection(java.lang.String orientationCorrection)
The orientation of the input image (counterclockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceRecords
represent face locations before the image
orientation is corrected.
If the input image is in jpeg format, it might contain exchangeable image
(Exif) metadata. If so, and the Exif metadata populates the orientation
field, the value of OrientationCorrection
is null and the
bounding box coordinates in FaceRecords
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 (counterclockwise
direction). If your application displays the image, you can
use this value to correct image orientation. The bounding box
coordinates returned in FaceRecords
represent
face locations before the image orientation is corrected.
If the input image is in jpeg format, it might contain
exchangeable image (Exif) metadata. If so, and the Exif
metadata populates the orientation field, the value of
OrientationCorrection
is null and the bounding
box coordinates in FaceRecords
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 (counterclockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceRecords
represent face locations before the image
orientation is corrected.
If the input image is in jpeg format, it might contain exchangeable image
(Exif) metadata. If so, and the Exif metadata populates the orientation
field, the value of OrientationCorrection
is null and the
bounding box coordinates in FaceRecords
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 (counterclockwise
direction). If your application displays the image, you can
use this value to correct image orientation. The bounding box
coordinates returned in FaceRecords
represent
face locations before the image orientation is corrected.
If the input image is in jpeg format, it might contain
exchangeable image (Exif) metadata. If so, and the Exif
metadata populates the orientation field, the value of
OrientationCorrection
is null and the bounding
box coordinates in FaceRecords
represent face
locations after Exif metadata is used to correct the image
orientation. Images in .png format don't contain Exif
metadata.
OrientationCorrection
public IndexFacesResult withOrientationCorrection(OrientationCorrection orientationCorrection)
The orientation of the input image (counterclockwise direction). If your
application displays the image, you can use this value to correct image
orientation. The bounding box coordinates returned in
FaceRecords
represent face locations before the image
orientation is corrected.
If the input image is in jpeg format, it might contain exchangeable image
(Exif) metadata. If so, and the Exif metadata populates the orientation
field, the value of OrientationCorrection
is null and the
bounding box coordinates in FaceRecords
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 (counterclockwise
direction). If your application displays the image, you can
use this value to correct image orientation. The bounding box
coordinates returned in FaceRecords
represent
face locations before the image orientation is corrected.
If the input image is in jpeg format, it might contain
exchangeable image (Exif) metadata. If so, and the Exif
metadata populates the orientation field, the value of
OrientationCorrection
is null and the bounding
box coordinates in FaceRecords
represent face
locations after Exif metadata is used to correct the image
orientation. Images in .png format don't contain Exif
metadata.
OrientationCorrection
public java.lang.String getFaceModelVersion()
Version number of the face detection model associated with the input
collection (CollectionId
).
Version number of the face detection model associated with the
input collection (CollectionId
).
public void setFaceModelVersion(java.lang.String faceModelVersion)
Version number of the face detection model associated with the input
collection (CollectionId
).
faceModelVersion
-
Version number of the face detection model associated with the
input collection (CollectionId
).
public IndexFacesResult withFaceModelVersion(java.lang.String faceModelVersion)
Version number of the face detection model associated with the input
collection (CollectionId
).
Returns a reference to this object so that method calls can be chained together.
faceModelVersion
-
Version number of the face detection model associated with the
input collection (CollectionId
).
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.