public static interface DetectLabelsResponse.Builder extends RekognitionResponse.Builder, CopyableBuilder<DetectLabelsResponse.Builder,DetectLabelsResponse>
Modifier and Type | Method and Description |
---|---|
DetectLabelsResponse.Builder |
labels(Collection<Label> labels)
An array of labels for the real-world objects detected.
|
DetectLabelsResponse.Builder |
labels(Consumer<Label.Builder>... 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(OrientationCorrection orientationCorrection)
The orientation of the input image (counter-clockwise direction).
|
DetectLabelsResponse.Builder |
orientationCorrection(String orientationCorrection)
The orientation of the input image (counter-clockwise direction).
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, 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.
labels
- An array of labels for the real-world objects detected.DetectLabelsResponse.Builder labels(Consumer<Label.Builder>... labels)
An array of labels for the real-world objects detected.
This is a convenience that creates an instance of theList
avoiding the need to create
one manually via List
.
When the Consumer
completes, List
is called immediately and its result
is passed to #labels(List
.labels
- a consumer that will call methods on List
#labels(List
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
,
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
,
OrientationCorrection
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.