public class IndexFacesResult extends Object implements Serializable
Constructor and Description |
---|
IndexFacesResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFaceModelVersion()
Version number of the face detection model associated with the input
collection (
CollectionId ). |
List<FaceRecord> |
getFaceRecords()
An array of faces detected and added to the collection.
|
String |
getOrientationCorrection()
The orientation of the input image (counterclockwise direction).
|
int |
hashCode() |
void |
setFaceModelVersion(String faceModelVersion)
Version number of the face detection model associated with the input
collection (
CollectionId ). |
void |
setFaceRecords(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(String orientationCorrection)
The orientation of the input image (counterclockwise direction).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IndexFacesResult |
withFaceModelVersion(String faceModelVersion)
Version number of the face detection model associated with the input
collection (
CollectionId ). |
IndexFacesResult |
withFaceRecords(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(String orientationCorrection)
The orientation of the input image (counterclockwise direction).
|
public 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(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(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 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(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(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 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(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(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.