@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectFacesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DetectFacesResult() |
Modifier and Type | Method and Description |
---|---|
DetectFacesResult |
clone() |
boolean |
equals(Object obj) |
List<FaceDetail> |
getFaceDetails()
Details of each face found in the image.
|
String |
getOrientationCorrection()
The algorithm detects the image orientation.
|
int |
hashCode() |
void |
setFaceDetails(Collection<FaceDetail> faceDetails)
Details of each face found in the image.
|
void |
setOrientationCorrection(OrientationCorrection orientationCorrection)
The algorithm detects the image orientation.
|
void |
setOrientationCorrection(String orientationCorrection)
The algorithm detects the image orientation.
|
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 algorithm detects the image orientation.
|
DetectFacesResult |
withOrientationCorrection(String orientationCorrection)
The algorithm detects the image orientation.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<FaceDetail> getFaceDetails()
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.
NOTE: This method appends the values to the existing list (if any). Use
setFaceDetails(java.util.Collection)
or withFaceDetails(java.util.Collection)
if you want to
override the existing values.
faceDetails
- Details of each face found in the image.public DetectFacesResult withFaceDetails(Collection<FaceDetail> faceDetails)
Details of each face found in the image.
faceDetails
- Details of each face found in the image.public void setOrientationCorrection(String orientationCorrection)
The algorithm detects the image orientation. If it detects that the image was rotated, it returns the degrees of rotation. If your application is displaying the image, you can use this value to adjust the orientation.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
orientationCorrection
- The algorithm detects the image orientation. If it detects that the image was rotated, it returns the
degrees of rotation. If your application is displaying the image, you can use this value to adjust the
orientation.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
OrientationCorrection
public String getOrientationCorrection()
The algorithm detects the image orientation. If it detects that the image was rotated, it returns the degrees of rotation. If your application is displaying the image, you can use this value to adjust the orientation.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
OrientationCorrection
public DetectFacesResult withOrientationCorrection(String orientationCorrection)
The algorithm detects the image orientation. If it detects that the image was rotated, it returns the degrees of rotation. If your application is displaying the image, you can use this value to adjust the orientation.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
orientationCorrection
- The algorithm detects the image orientation. If it detects that the image was rotated, it returns the
degrees of rotation. If your application is displaying the image, you can use this value to adjust the
orientation.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
OrientationCorrection
public void setOrientationCorrection(OrientationCorrection orientationCorrection)
The algorithm detects the image orientation. If it detects that the image was rotated, it returns the degrees of rotation. If your application is displaying the image, you can use this value to adjust the orientation.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
orientationCorrection
- The algorithm detects the image orientation. If it detects that the image was rotated, it returns the
degrees of rotation. If your application is displaying the image, you can use this value to adjust the
orientation.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
OrientationCorrection
public DetectFacesResult withOrientationCorrection(OrientationCorrection orientationCorrection)
The algorithm detects the image orientation. If it detects that the image was rotated, it returns the degrees of rotation. If your application is displaying the image, you can use this value to adjust the orientation.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
orientationCorrection
- The algorithm detects the image orientation. If it detects that the image was rotated, it returns the
degrees of rotation. If your application is displaying the image, you can use this value to adjust the
orientation.
For example, if the service detects that the input image was rotated by 90 degrees, it corrects orientation, performs face detection, and then returns the faces. That is, the bounding box coordinates in the response are based on the corrected orientation.
If the source image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be nil.
OrientationCorrection
public String toString()
toString
in class Object
Object.toString()
public DetectFacesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.