CopyableBuilder<DetectLabelsResponse.Builder,DetectLabelsResponse>
, SdkBuilder<DetectLabelsResponse.Builder,DetectLabelsResponse>
public static interface DetectLabelsResponse.Builder extends CopyableBuilder<DetectLabelsResponse.Builder,DetectLabelsResponse>
Modifier and Type | Method | Description |
---|---|---|
DetectLabelsResponse.Builder |
labels(Collection<Label> labels) |
An array of labels for the real-world objects detected.
|
DetectLabelsResponse.Builder |
labels(Label... labels) |
An array of labels for the real-world objects detected.
|
DetectLabelsResponse.Builder |
orientationCorrection(String orientationCorrection) |
The orientation of the input image (counter-clockwise direction).
|
DetectLabelsResponse.Builder |
orientationCorrection(OrientationCorrection orientationCorrection) |
The orientation of the input image (counter-clockwise direction).
|
copy
apply, build
DetectLabelsResponse.Builder labels(Collection<Label> labels)
An array of labels for the real-world objects detected.
labels
- An array of labels for the real-world objects detected.DetectLabelsResponse.Builder labels(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.DetectLabelsResponse.Builder orientationCorrection(String orientationCorrection)
The orientation of the input image (counter-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 input image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be null.
orientationCorrection
- The orientation of the input image (counter-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 input image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be null.
OrientationCorrection
DetectLabelsResponse.Builder orientationCorrection(OrientationCorrection orientationCorrection)
The orientation of the input image (counter-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 input image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be null.
orientationCorrection
- The orientation of the input image (counter-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 input image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be null.
OrientationCorrection
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.