Interface DetectLabelsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DetectLabelsResponse.Builder,
,DetectLabelsResponse> RekognitionResponse.Builder
,SdkBuilder<DetectLabelsResponse.Builder,
,DetectLabelsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DetectLabelsResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault DetectLabelsResponse.Builder
imageProperties
(Consumer<DetectLabelsImageProperties.Builder> imageProperties) Information about the properties of the input image, such as brightness, sharpness, contrast, and dominant colors.imageProperties
(DetectLabelsImageProperties imageProperties) Information about the properties of the input image, such as brightness, sharpness, contrast, and dominant colors.labelModelVersion
(String labelModelVersion) Version number of the label detection model that was used to detect labels.labels
(Collection<Label> labels) An array of labels for the real-world objects detected.labels
(Consumer<Label.Builder>... labels) An array of labels for the real-world objects detected.An array of labels for the real-world objects detected.orientationCorrection
(String orientationCorrection) The value ofOrientationCorrection
is always null.orientationCorrection
(OrientationCorrection orientationCorrection) The value ofOrientationCorrection
is always null.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
labels
An array of labels for the real-world objects detected.
- Parameters:
labels
- An array of labels for the real-world objects detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labels
An array of labels for the real-world objects detected.
- Parameters:
labels
- An array of labels for the real-world objects detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labels
An array of labels for the real-world objects detected.
This is a convenience method that creates an instance of theLabel.Builder
avoiding the need to create one manually viaLabel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolabels(List<Label>)
.- Parameters:
labels
- a consumer that will call methods onLabel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
orientationCorrection
The value of
OrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Parameters:
orientationCorrection
- The value ofOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
orientationCorrection
The value of
OrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Parameters:
orientationCorrection
- The value ofOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
labelModelVersion
Version number of the label detection model that was used to detect labels.
- Parameters:
labelModelVersion
- Version number of the label detection model that was used to detect labels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageProperties
Information about the properties of the input image, such as brightness, sharpness, contrast, and dominant colors.
- Parameters:
imageProperties
- Information about the properties of the input image, such as brightness, sharpness, contrast, and dominant colors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageProperties
default DetectLabelsResponse.Builder imageProperties(Consumer<DetectLabelsImageProperties.Builder> imageProperties) Information about the properties of the input image, such as brightness, sharpness, contrast, and dominant colors.
This is a convenience method that creates an instance of theDetectLabelsImageProperties.Builder
avoiding the need to create one manually viaDetectLabelsImageProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageProperties(DetectLabelsImageProperties)
.- Parameters:
imageProperties
- a consumer that will call methods onDetectLabelsImageProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-