Interface DetectLabelsImageBackground.Builder

    • Method Detail

      • quality

        DetectLabelsImageBackground.Builder quality​(DetectLabelsImageQuality quality)

        The quality of the image background as defined by brightness and sharpness.

        Parameters:
        quality - The quality of the image background as defined by brightness and sharpness.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dominantColors

        DetectLabelsImageBackground.Builder dominantColors​(Collection<DominantColor> dominantColors)

        The dominant colors found in the background of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).

        Parameters:
        dominantColors - The dominant colors found in the background of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dominantColors

        DetectLabelsImageBackground.Builder dominantColors​(DominantColor... dominantColors)

        The dominant colors found in the background of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).

        Parameters:
        dominantColors - The dominant colors found in the background of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dominantColors

        DetectLabelsImageBackground.Builder dominantColors​(Consumer<DominantColor.Builder>... dominantColors)

        The dominant colors found in the background of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).

        This is a convenience method that creates an instance of the DominantColor.Builder avoiding the need to create one manually via DominantColor.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #dominantColors(List).

        Parameters:
        dominantColors - a consumer that will call methods on DominantColor.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #dominantColors(java.util.Collection)