@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectLabelsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DetectLabelsResult() |
Modifier and Type | Method and Description |
---|---|
DetectLabelsResult |
clone() |
boolean |
equals(Object obj) |
List<Label> |
getLabels()
An array of labels for the real-world objects detected.
|
String |
getOrientationCorrection()
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction).
|
int |
hashCode() |
void |
setLabels(Collection<Label> labels)
An array of labels for the real-world objects detected.
|
void |
setOrientationCorrection(OrientationCorrection orientationCorrection)
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction).
|
void |
setOrientationCorrection(String orientationCorrection)
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction).
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DetectLabelsResult |
withLabels(Collection<Label> labels)
An array of labels for the real-world objects detected.
|
DetectLabelsResult |
withLabels(Label... labels)
An array of labels for the real-world objects detected.
|
DetectLabelsResult |
withOrientationCorrection(OrientationCorrection orientationCorrection)
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction).
|
DetectLabelsResult |
withOrientationCorrection(String orientationCorrection)
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction).
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Label> getLabels()
An array of labels for the real-world objects detected.
public void setLabels(Collection<Label> labels)
An array of labels for the real-world objects detected.
labels
- An array of labels for the real-world objects detected.public DetectLabelsResult withLabels(Label... labels)
An array of labels for the real-world objects detected.
NOTE: This method appends the values to the existing list (if any). Use
setLabels(java.util.Collection)
or withLabels(java.util.Collection)
if you want to override the
existing values.
labels
- An array of labels for the real-world objects detected.public DetectLabelsResult withLabels(Collection<Label> labels)
An array of labels for the real-world objects detected.
labels
- An array of labels for the real-world objects detected.public void setOrientationCorrection(String orientationCorrection)
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If your application displays the image, you can use this value to correct the orientation. If Amazon Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the orientation before detecting the labels.
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
- Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If
your application displays the image, you can use this value to correct the orientation. If Amazon
Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the
orientation before detecting the labels. 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()
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If your application displays the image, you can use this value to correct the orientation. If Amazon Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the orientation before detecting the labels.
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.
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 DetectLabelsResult withOrientationCorrection(String orientationCorrection)
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If your application displays the image, you can use this value to correct the orientation. If Amazon Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the orientation before detecting the labels.
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
- Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If
your application displays the image, you can use this value to correct the orientation. If Amazon
Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the
orientation before detecting the labels. 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)
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If your application displays the image, you can use this value to correct the orientation. If Amazon Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the orientation before detecting the labels.
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
- Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If
your application displays the image, you can use this value to correct the orientation. If Amazon
Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the
orientation before detecting the labels. 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 DetectLabelsResult withOrientationCorrection(OrientationCorrection orientationCorrection)
Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If your application displays the image, you can use this value to correct the orientation. If Amazon Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the orientation before detecting the labels.
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
- Amazon Rekognition returns the orientation of the input image that was detected (clockwise direction). If
your application displays the image, you can use this value to correct the orientation. If Amazon
Rekognition detects that the input image was rotated (for example, by 90 degrees), it first corrects the
orientation before detecting the labels. 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 DetectLabelsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.