Interface RecognizeCelebritiesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<RecognizeCelebritiesResponse.Builder,,RecognizeCelebritiesResponse> RekognitionResponse.Builder,SdkBuilder<RecognizeCelebritiesResponse.Builder,,RecognizeCelebritiesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
RecognizeCelebritiesResponse
-
Method Summary
Modifier and TypeMethodDescriptioncelebrityFaces(Collection<Celebrity> celebrityFaces) Details about each celebrity found in the image.celebrityFaces(Consumer<Celebrity.Builder>... celebrityFaces) Details about each celebrity found in the image.celebrityFaces(Celebrity... celebrityFaces) Details about each celebrity found in the image.orientationCorrection(String orientationCorrection) orientationCorrection(OrientationCorrection orientationCorrection) unrecognizedFaces(Collection<ComparedFace> unrecognizedFaces) Details about each unrecognized face in the image.unrecognizedFaces(Consumer<ComparedFace.Builder>... unrecognizedFaces) Details about each unrecognized face in the image.unrecognizedFaces(ComparedFace... unrecognizedFaces) Details about each unrecognized face in the image.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
celebrityFaces
Details about each celebrity found in the image. Amazon Rekognition can detect a maximum of 64 celebrities in an image. Each celebrity object includes the following attributes:
Face,Confidence,Emotions,Landmarks,Pose,Quality,Smile,Id,KnownGender,MatchConfidence,Name,Urls.- Parameters:
celebrityFaces- Details about each celebrity found in the image. Amazon Rekognition can detect a maximum of 64 celebrities in an image. Each celebrity object includes the following attributes:Face,Confidence,Emotions,Landmarks,Pose,Quality,Smile,Id,KnownGender,MatchConfidence,Name,Urls.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
celebrityFaces
Details about each celebrity found in the image. Amazon Rekognition can detect a maximum of 64 celebrities in an image. Each celebrity object includes the following attributes:
Face,Confidence,Emotions,Landmarks,Pose,Quality,Smile,Id,KnownGender,MatchConfidence,Name,Urls.- Parameters:
celebrityFaces- Details about each celebrity found in the image. Amazon Rekognition can detect a maximum of 64 celebrities in an image. Each celebrity object includes the following attributes:Face,Confidence,Emotions,Landmarks,Pose,Quality,Smile,Id,KnownGender,MatchConfidence,Name,Urls.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
celebrityFaces
Details about each celebrity found in the image. Amazon Rekognition can detect a maximum of 64 celebrities in an image. Each celebrity object includes the following attributes:
This is a convenience method that creates an instance of theFace,Confidence,Emotions,Landmarks,Pose,Quality,Smile,Id,KnownGender,MatchConfidence,Name,Urls.Celebrity.Builderavoiding the need to create one manually viaCelebrity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocelebrityFaces(List<Celebrity>).- Parameters:
celebrityFaces- a consumer that will call methods onCelebrity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unrecognizedFaces
Details about each unrecognized face in the image.
- Parameters:
unrecognizedFaces- Details about each unrecognized face in the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unrecognizedFaces
Details about each unrecognized face in the image.
- Parameters:
unrecognizedFaces- Details about each unrecognized face in the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unrecognizedFaces
RecognizeCelebritiesResponse.Builder unrecognizedFaces(Consumer<ComparedFace.Builder>... unrecognizedFaces) Details about each unrecognized face in the image.
This is a convenience method that creates an instance of theComparedFace.Builderavoiding the need to create one manually viaComparedFace.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tounrecognizedFaces(List<ComparedFace>).- Parameters:
unrecognizedFaces- a consumer that will call methods onComparedFace.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
orientationCorrection
Support for estimating image orientation using the the OrientationCorrection field has ceased as of August 2021. Any returned values for this field included in an API response will always be NULL.
The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct the orientation. The bounding box coordinates returned in
CelebrityFacesandUnrecognizedFacesrepresent face locations before the image orientation is corrected.If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of
OrientationCorrectionis null. TheCelebrityFacesandUnrecognizedFacesbounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.- Parameters:
orientationCorrection-Support for estimating image orientation using the the OrientationCorrection field has ceased as of August 2021. Any returned values for this field included in an API response will always be NULL.
The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct the orientation. The bounding box coordinates returned in
CelebrityFacesandUnrecognizedFacesrepresent face locations before the image orientation is corrected.If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of
OrientationCorrectionis null. TheCelebrityFacesandUnrecognizedFacesbounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
orientationCorrection
RecognizeCelebritiesResponse.Builder orientationCorrection(OrientationCorrection orientationCorrection) Support for estimating image orientation using the the OrientationCorrection field has ceased as of August 2021. Any returned values for this field included in an API response will always be NULL.
The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct the orientation. The bounding box coordinates returned in
CelebrityFacesandUnrecognizedFacesrepresent face locations before the image orientation is corrected.If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of
OrientationCorrectionis null. TheCelebrityFacesandUnrecognizedFacesbounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.- Parameters:
orientationCorrection-Support for estimating image orientation using the the OrientationCorrection field has ceased as of August 2021. Any returned values for this field included in an API response will always be NULL.
The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct the orientation. The bounding box coordinates returned in
CelebrityFacesandUnrecognizedFacesrepresent face locations before the image orientation is corrected.If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of
OrientationCorrectionis null. TheCelebrityFacesandUnrecognizedFacesbounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-